void Awake() { if (__instance == null) { __instance = this; GameObject.DontDestroyOnLoad(this); } }
// Start private void Start() { uiControler = GetComponent <UIControler>(); mainUpdate = FindObjectOfType <MainUpdate>(); }
void Awake() { if (__instance == null) { __instance = this; GameObject.DontDestroyOnLoad(this); } }
// Start private void Start() { uiControler = GetComponent <UIControler>(); mainUpdate = FindObjectOfType <MainUpdate>(); }