Exemple #1
0
        public void ReceivePlayerMoveAction(PlayerAction moveActions)
        {
            if (moveActions.moveActions.Length == 0)
            {
                return;
            }

            if (UIManager.IsInputFocus)
            {
                return;
            }

            if (moveCoolDown)
            {
                return;
            }
            moveCoolDown = true;

            StartCoroutine(CoolDown());

            aiPlayer.MoveCameraByKey(PlayerAction.GetMoveAction(moveActions.Direction()));
        }