public void OnAction(int type) { if (type > 0 && type < 4) { magicObject.ChangeObject(type); if (compteur != null) { compteur.startIncrement(); } else { //Debug.LogWarning("Compteur not found"); } } }