using System.Collections; using System.Collections.Generic; using UnityEngine; public class DeselectManager : MonoBehaviour where T : SingletonBehaviour { public static T Instance { get; private set; } protected virtual void Awake() { if (!Instance) Instance = this as T; else Destroy(this); } private void Update() { if (Input.GetMouseButton(0)) { // Verif liste si click sur un enfant d'AllyUpgrade } } }