void OnDestroy() { if (s_Instance == this) { s_Instance = null; } }
void Awake() { if (s_Instance != null) { Debug.LogWarning("GridUpdateManager already exists! Fix yo' shit boi!"); Destroy(this.gameObject); return; } s_Instance = this; }