Exemple #1
0
 private void Awake()
 {
     m_BoxCollider = GetComponent <SmartBoxCollider>();
     m_Rigidbody2D = GetComponent <Rigidbody2D>();
     input         = GetComponent <AbstractCharacterInput>();
 }
Exemple #2
0
 private void OnEnable()
 {
     collider = (SmartBoxCollider)target;
 }
Exemple #3
0
 private void Awake()
 {
     collider  = GetComponent <SmartBoxCollider>();
     rigidbody = GetComponent <Rigidbody2D>();
 }