Пример #1
0
    public void useWrath()
    {
        singleRun = true;

        if (player == 0)
        {
            Instantiate(WrathRing);
        }
        if (player == 1)
        {
            Instantiate(ElectricShock);
        }
        if (player == 2)
        {
            Instantiate(WaterWave);
        }
        if (player == 3)
        {
            Instantiate(LightWave);
        }
        if (player == 4)
        {
            Instantiate(PoisonWave);
        }


        WrathManager.EmptyWrath();
        RageBar.interactable = false;
        wrathFace.SetBool("Wrath", false);
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     player    = PlayerPrefs.GetInt("CharacterSelected");
     wrathFace = gameObject.GetComponent <Animator>();
     WrathManager.EmptyWrath();
 }