Ejemplo n.º 1
0
    private void Update()
    {
        if (!Actor.YourTurn || GameManager.Instance.EndGame || GameManager.Instance.IsPause)
        {
            return;
        }

        _turnTime += Time.deltaTime;

        UpdateLogic();

        _oldPosition = transform.position;
        _oldRotation = transform.rotation;
        _oldPoints   = Actor.CurrentActionPoints;

        if (_turnTime >= 10f)
        {
            Agent.isStopped  = true;
            Agent.enabled    = false;
            Obstacle.enabled = true;
            Actor.EndTurn();
        }
    }
 private void InstanceOnOnSpaceDown()
 {
     Actor.EndTurn();
 }