Example #1
0
 /// Runs at start
 public virtual void Init()
 {
     colInfo = GetComponent<CollisionInfo>();
 }
Example #2
0
 // Initialze all necessary components
 void Awake()
 {
     rigidbody = GetComponent <Rigidbody>();
     collider  = GetComponentInChildren <Collider>();
     colInfo   = GetComponent <CollisionInfo>();
 }
Example #3
0
 // Initialze all necessary components
 void Awake()
 {
     rigidbody = GetComponent<Rigidbody>();
     collider = GetComponentInChildren<Collider>();
     colInfo = GetComponent<CollisionInfo>();
 }
Example #4
0
 /// Runs at start
 public virtual void Init()
 {
     colInfo = GetComponent <CollisionInfo>();
 }