private void OnDestroy() { if (Instance == this) { Instance = null; } }
private void Awake() { Debug.Assert(Instance == null, "You are starting another Picus.Coroutine.Manager. It should be singleton.", true); if (Instance == null) { Instance = this; } }