コード例 #1
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);
        }
    }