예제 #1
0
 IEnumerator justWait(int _i)
 {
     if(_i == 0)
     {
         yield return new WaitForSeconds (0.1f);
         for(int i = 0; i < width; i++)
         {
             for(int j = 0; j < height; j++)
             {
                 if(cardScript[i, j].face == value1) cardObject[i, j].renderer.enabled = false;
             }
         }
         click_state = clickState.DEFAULT;
     }
     else if(_i == 1)
     {
         yield return new WaitForSeconds (0.5f);
         click_state = clickState.DEFAULT;
         for(int i = 0; i < width; i++)
         {
             for(int j = 0; j < height; j++)
             {
                 cardScript[i, j].renderer.material.color = Color.gray;
             }
         }
     }
 }
예제 #2
0
 void Start()
 {
     base.Start ();
     nextGame = buttonResponse.LOAD_AWARDS_SCENE;
     cardObject = new GameObject[width, height];
     cardScript = new Card[width, height];
     setUpGame ();
     click_state = clickState.DEFAULT;
 }