Example #1
0
        public void Stop()
        {
            IsMoving        = false;
            Rotator.IsBlock = true;
            AnimatorController.Stop(AnimState.Walking);
            MoveHandler.Clear();

            Remote.Binding();
        }
Example #2
0
        public void MoveFinish()
        {
            Vector3Int currentCell = MapIns.WorldToCell(transform.position).ZToZero();

            if (!Remote.Binding())
            {
                if (MapIns.GetNearestPosition(currentCell, out Vector3Int result))
                {
                    // StartMove(currentCell, result); // main thread
                    // AsyncStartMove(currentCell, result); // another thread
                    AgentController.MoveAgent(this, currentCell, result, currentEnemy);
                    curMoveStep = 0;
                }
            }
            else
            {
                Stop();
            }
        }