Пример #1
0
    void TriggerAction()
    {
        TurnOnGlow();

        if (gearTrigger == true)
        {
            gameManager.PlayGearItems();
        }


        else if (forwardTriggerPink == true)
        {
            gameManager.ForwardPink();
        }

        else if (rightTriggerPink == true)
        {
            gameManager.RotateRightPink();
        }

        else if (leftTriggerPink == true)
        {
            gameManager.RotateLeftPink();
        }
        else if (wheelTriggerPink == true)
        {
            gameManager.GetComponent <TurnManagerScript> ().FillPinkColorArray();
        }

        else if (napTriggerPink == true)
        {
            gameManager.Nap();
        }

        else if (forwardTriggerBlue == true)
        {
            gameManager.ForwardBlue();
        }

        else if (rightTriggerBlue == true)
        {
            gameManager.RotateRightBlue();
        }

        else if (leftTriggerBlue == true)
        {
            gameManager.RotateLeftBlue();
        }

        else if (wheelTriggerBlue == true)
        {
            gameManager.GetComponent <TurnManagerScript> ().FillBlueColorArray();
        }

        else if (napTriggerBlue == true)
        {
            gameManager.Nap();
        }
    }