public void Potion() { int nbPotion = wm.GetNumberPotion(); //Debug.Log("nb " + nbPotion + " wave " + wm.GetWave()); if (nbPotion > 0 && wm.GetWave()) { wm.DownNumberPotion(); nbPotion--; gm.WakeUpAllGuard(); instancePotion.gameObject.GetComponentInChildren <Text> ().text = nbPotion.ToString(); } }