private void Awake() { chestContentCanvas = FindObjectOfType <ChestCanvas>(); chestTop = transform.GetChild(0); controls = new Controls(); controls.Enable(); DOTween.Init(); }
private void Awake() { chestContentCanvas = GameObject.FindWithTag("ChestCanvas").GetComponent <ChestCanvas>(); chestTop = transform.GetChild(0); controls = new Controls(); controls.Enable(); DOTween.Init(); }
private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else if (instance != this) { Destroy(gameObject); } }