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); }
public void Ritual(pitManger playerPit) { playerPit.GetComponent<spawnDemon>().SpawnDevil(playerPit.TeamID); isCast(true); }
public void Ritual(pitManger playerPit) { playerPit.SummonMeteor(); isCast(true); }