2025-06-01 18:31:39 -04:00

27 lines
520 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DeselectManager<T> : MonoBehaviour where T : SingletonBehaviour<T>
{
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
}
}
}