public void ShowCard(GameCardBehaviour card) { card.Active = true; // enable renderer card.gameObject.GetComponent <SpriteRenderer>().enabled = true; // enable collider card.GetComponent <BoxCollider2D>().enabled = true; }
public void HideCard(GameCardBehaviour card) { card.Active = false; // disable renderer card.gameObject.GetComponent<SpriteRenderer>().enabled = false; // disable collider card.GetComponent<BoxCollider2D>().enabled = false; }
public void HideCard(GameCardBehaviour card) { card.Active = false; // disable renderer card.gameObject.GetComponent <SpriteRenderer>().enabled = false; // disable collider card.GetComponent <BoxCollider2D>().enabled = false; }
public void ShowCard(GameCardBehaviour card) { card.Active = true; // enable renderer card.gameObject.GetComponent<SpriteRenderer>().enabled = true; // enable collider card.GetComponent<BoxCollider2D>().enabled = true; }