Esempio n. 1
0
    public void Ritual(pitManger playerPit)
    {

        GameObject[] otherTeam;
        if (playerPit.TeamID == 1)
        {
            otherTeam = GameObject.FindGameObjectsWithTag("Team2");
            foreach (GameObject player in otherTeam)
            {
                player.GetComponent<playersMovement>().slowed = true;
            }
        }
        else if (playerPit.TeamID == 0)
        {
            otherTeam = GameObject.FindGameObjectsWithTag("Team1");
            foreach (GameObject player in otherTeam)
            {
                player.GetComponent<playersMovement>().slowed = true;
            }
        }
        isCast(true);
    }
Esempio n. 2
0
 public void Ritual(pitManger playerPit)
 {
     playerPit.GetComponent<spawnDemon>().SpawnDevil(playerPit.TeamID);
     isCast(true);
 }
Esempio n. 3
0
    public void Ritual(pitManger playerPit)
    {
        playerPit.SummonMeteor();
        isCast(true);

    }