Example #1
0
 // Use this for initialization
 void Start()
 {
     entities = new List <BaseEntity>();
     sensor.SetCollisionEnterCallback(TriggerEnter2D);
     sensor.SetCollisionExitCallback(TriggerExit2D);
     MobCounter.Instance.PlusOneToAlive();
     animator     = GetComponent <Animator>();
     this.dropper = GetComponent <PickupDropper>();
 }
Example #2
0
 public void Start()
 {
     playerSensor.SetCollisionEnterCallback(TriggerEnter);
     playerSensor.SetCollisionExitCallback(TriggerExit);
 }