Esempio n. 1
0
        private void Awake()
        {
            chestContentCanvas = FindObjectOfType <ChestCanvas>();
            chestTop           = transform.GetChild(0);

            controls = new Controls();
            controls.Enable();

            DOTween.Init();
        }
Esempio n. 2
0
        private void Awake()
        {
            chestContentCanvas = GameObject.FindWithTag("ChestCanvas").GetComponent <ChestCanvas>();
            chestTop           = transform.GetChild(0);

            controls = new Controls();
            controls.Enable();

            DOTween.Init();
        }
Esempio n. 3
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }