LazyBot/Assets/Scripts/Entity/EntityControllerSimple.cs
/// <summary>
/// Update's destination position.
/// </summary>
/// <param name="destination">Position in scene.</param>
/// <param name="isImmediate">Is update must be executed immediately.</param>
Update's destination position.
Update ' s destination position .
public override void UpdatePath(Vector3 destination = new Vector3(), bool isImmediate = false)
        {
            if ((!isImmediate) &&
                (_timeSincePathUpdate < _pathUpdateDelay))
                return;
            _destination = (destination == Vector3.zero) ?
                _destination : destination;            
            _timeSincePathUpdate = 0.0f;
        }
public override void UpdatePath ( Vector3 destination = new Vector3 ( ) , bool isImmediate = false ) { if ( ( ! isImmediate ) && ( _timeSincePathUpdate < _pathUpdateDelay ) ) return ; _destination = ( destination == Vector3 . zero ) ? _destination : destination ; _timeSincePathUpdate = 0.0f ; }
Update's destination position.
Update ' s destination position .
destination
Vector3
Position in scene.
Position in scene .
isImmediate
bool
None