Esempio n. 1
0
 void ChangeCollider(ColliderNames name)
 {
     boxCollider.enabled      = name == ColliderNames.Default;
     smallBoxCollider.enabled = name == ColliderNames.Small;
     dieBoxCollider.enabled   = name == ColliderNames.Die;
 }
Esempio n. 2
0
 void ChangeColliderIf(bool condition, ColliderNames name)
 {
     ChangeCollider(condition ? name : ColliderNames.Default);
 }