void Start() { menu = transform.parent.GetComponent <LevelUpMenu>(); #if UNITY_EDITOR if (charac == Characteristics.NbCharacteristics) { Debug.Log("charac = Characteristics.NbCharacteristics"); } #endif characLabel.text = Enum.GetName(charac.GetType(), charac); ResetValue(); }