Example #1
0
    // Update is called once per frame
    void Update()
    {
        if (!_controllerManager.GetADown(player))
        {
            return;
        }

        scoreBar.Enable = true;
        Debug.Log("Player " + player + " Dropping In!");
        _playerManager.SpawnPlayer(player);
    }
Example #2
0
 private void Update()
 {
     for (int i = 0; i < 4; i++)
     {
         if ((butonType == ButtonType.A && _controllerManager.GetADown((PlayerIndex)i)) ||
             (butonType == ButtonType.X && _controllerManager.GetXDown((PlayerIndex)i)))
         {
             SceneManager.LoadScene(sceneName);
         }
     }
 }
Example #3
0
    // Update is called once per frame
    void Update()
    {
        if (buttonSelected)
        {
            dog.Pose();
            return;
        }

        if (_controllerManager.GetADown(playerNumber))
        {
            SelectButton();
        }
    }
Example #4
0
    private void Update()
    {
        Vector2 movementDir = CanMove ? GetMovementDir() : Vector2.zero;

        _dog.MovementDir = movementDir;

        if (!CanMove)
        {
            return;
        }

        if (_controllerManager.GetADown(playerNumber))
        {
            _dog.Roll();
        }
        if (_controllerManager.GetBDown(playerNumber))
        {
            _dog.Leap();
        }
        if (_controllerManager.GetYHeld(playerNumber))
        {
            _dog.Pose(true);
        }
    }