Ejemplo n.º 1
0
 private void CreateComPuterCards()
 {
     if (GamePlayScript.GetInstance() != null)
     {
         GamePlayScript.GetInstance().OnCreateCompCards();
     }
 }
Ejemplo n.º 2
0
 void MakeInstance()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Ejemplo n.º 3
0
    void Start()
    {
        counter = 0;
        gps     = this;

        //static referce of gamePlayScript
    }
Ejemplo n.º 4
0
    public void OnChooseCard()
    {
        GamePlayScript gamePlayScript = GamePlayScript.GetInstance();
        GameController gController    = GameController.GetInstance();

        if (gamePlayScript != null && !gamePlayScript.IsCompleteShowCard || !gamePlayScript.IsCompleteCreatePlayerCard)
        {
            if (gController != null)
            {
                gController.ShowHint(ConstantManager.HINT_WAITING_FOR_COMPLETING_CARD, this.GetComponent <RectTransform>());
            }
            return;
        }
        if (PlayerCardManager.GetInstance() != null && PlayerCardManager.GetInstance().IsFullSlot())
        {
            return;
        }
        gamePlayScript.OnRoll(cardIndex);
    }
Ejemplo n.º 5
0
 private void Awake()
 {
     instance = this;
     OnCreateResource();
 }