Esempio n. 1
0
    protected void SyncMoveStamp(Vector3 moveDir, bool isStop, bool forceSync, Vector3 destPos)
    {
        if (_Type == BehaviorType.Follow || _Type == BehaviorType.Move || _Type == BehaviorType.JoyStickMove)
        {
            if (_ObjectComponent == null)
            {
                _ObjectComponent = _Owner.GetComponent <ObjectBehaviour>();
            }

            if (_ObjectComponent != null)
            {
                _ObjectComponent.SyncHostMoveInfo(moveDir, isStop, forceSync, destPos);
            }
        }
    }