void Start() { GameObject player = GameObject.Find("Player"); if (player != null) { playerMov = player.GetComponent <PlayerMovement>(); playerInfo = player.GetComponent <PlayerInfo>(); } iceInfo = this.GetComponent <IceInfo>(); }
public static void addIce(IceInfo ice) { // Se ele nunca foi até esse ice, adiciono à lista if (!icesThatPlayerWent.Contains(ice)) { icesThatPlayerWent.Add(ice); } // Se não, significa que ele ja esteve nesse ice, então soma na dificuldade else { backToSameIce++; } }