Fixing func calling order

This commit is contained in:
HungDK
2025-09-16 15:33:15 +07:00
parent 3f148c3f0f
commit 24540e150d
3 changed files with 7 additions and 38 deletions
-11
View File
@@ -20,12 +20,6 @@ public class GameController : MonoBehaviour
if (instance == null)
{
instance = FindAnyObjectByType<GameController>();
//if (instance == null)
//{
// var go = new GameObject("GameController");
// instance = go.AddComponent<GameController>();
// DontDestroyOnLoad(go);
//}
}
return instance;
}
@@ -35,12 +29,7 @@ public class GameController : MonoBehaviour
if(instance == null)
{
instance = this;
//DontDestroyOnLoad(gameObject);
}
//else if(instance != this)
//{
// Destroy(gameObject);
//}
}
private void Start()