private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(this.gameObject); CardPlacement = new CardPlacementController(); CardPlacement.SetCardPrefab = CardPrefabData; UIControll = GameObject.Find("Game UI Canvas").GetComponent <GameUIPresenter>(); } else { Destroy(this.gameObject); } }
private void Awake() { UIControll = GameObject.Find("Game UI Canvas").GetComponent <GameUIPresenter>(); selectTotalCardNumber = 0; selectKindCardPattern = 0; }
private void Awake() { UIControll = GameObject.Find("Game UI Canvas").GetComponent <GameUIPresenter>(); }
private void Awake() { UIControll = GameObject.Find("Game UI Canvas").GetComponent <GameUIPresenter>(); destroyCardCountTextScale = destroyCardCountText.rectTransform.localScale; }