예제 #1
0
 public void ShowCard(GameCardBehaviour card)
 {
     card.Active = true;
     // enable renderer
     card.gameObject.GetComponent <SpriteRenderer>().enabled = true;
     // enable collider
     card.GetComponent <BoxCollider2D>().enabled = true;
 }
예제 #2
0
 public void HideCard(GameCardBehaviour card)
 {
     card.Active = false;
     // disable renderer
     card.gameObject.GetComponent<SpriteRenderer>().enabled = false;
     // disable collider
     card.GetComponent<BoxCollider2D>().enabled = false;
 }
예제 #3
0
 public void HideCard(GameCardBehaviour card)
 {
     card.Active = false;
     // disable renderer
     card.gameObject.GetComponent <SpriteRenderer>().enabled = false;
     // disable collider
     card.GetComponent <BoxCollider2D>().enabled = false;
 }
예제 #4
0
 public void ShowCard(GameCardBehaviour card)
 {
     card.Active = true;
     // enable renderer
     card.gameObject.GetComponent<SpriteRenderer>().enabled = true;
     // enable collider
     card.GetComponent<BoxCollider2D>().enabled = true;
 }