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

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

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

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

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