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);
        }
    }
Beispiel #2
0
 private void Awake()
 {
     UIControll            = GameObject.Find("Game UI Canvas").GetComponent <GameUIPresenter>();
     selectTotalCardNumber = 0;
     selectKindCardPattern = 0;
 }
Beispiel #3
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;
 }