public void DebugStuff(GC.GameEvent e) { PlayerPoweredUp powerUp = e as PlayerPoweredUp; foreach (GameObject enemy in enemies) { Debug.Log("My name is " + enemy.gameObject.name + " and my target is " + powerUp.player.gameObject.name); } }
public void EatPizza(GC.GameEvent e) { pizzaCount++; Debug.Log("pizzas eaten = " + pizzaCount); }