コード例 #1
0
ファイル: CardBehaviour.cs プロジェクト: AlanxxonE/Unomatic
 private void SwitchColliders()
 {
     if (userCardHand.GetCardSelected() == false)
     {
         this.GetComponents <BoxCollider>()[0].enabled = false;
         this.GetComponents <BoxCollider>()[1].enabled = true;
     }
     else
     {
         this.GetComponents <BoxCollider>()[0].enabled = true;
         this.GetComponents <BoxCollider>()[1].enabled = false;
     }
 }