Exemple #1
0
    void Awake()
    {
        if (__instance == null)
        {
            __instance = this;

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