Esempio n. 1
0
    private void Update()
    {
        Vector2 input = Vector2.zero;

        Move(inputMapping.GetMovement());

        // if(Input.GetKeyDown(KeyCode.KeypadPlus)) {
        //     Grow();
        // }
        // if(Input.GetKeyDown(KeyCode.KeypadMinus)) {
        //     OnAttacked(bodyParts.Count - 1);
        // }

        if (inputMapping.GetAttack())
        {
            Attack();
        }

        if (movementLocked == true && inputMapping.GetAttack())
        {
            ColorPalette newPalette = PlayerManager.SwapPalette(colorPalette);
            SetColorPalette(newPalette);
        }
    }