コード例 #1
0
ファイル: B_Entity.cs プロジェクト: milone365/Scooopa-
 //public Card
 public void INIT(B_Table t)
 {
     images  = GetComponentsInChildren <Image>();
     buttons = GetComponentsInChildren <Button>();
     table   = t;
     HilightBorder(false);
 }
コード例 #2
0
ファイル: B_Deck.cs プロジェクト: milone365/Scooopa-
 private void Start()
 {
     ui         = FindObjectOfType <B_UI>();
     allPlayers = FindObjectsOfType <B_Entity>();
     //set player
     foreach (var item in allPlayers)
     {
         if (item.isPlayer)
         {
             player = item;
         }
     }
     table       = GetComponent <B_Table>();
     table.green = allPlayers[0].green;
     BuidDeck();
     if (GameType != gameType.five)
     {
         normalPlaySetUp();
     }
     else
     {
         callingSetUp();
     }
     //initialize table for last beacause game start whit table
     table.INIT(this);
 }