// 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>(); }
public void Start() { playerSensor.SetCollisionEnterCallback(TriggerEnter); playerSensor.SetCollisionExitCallback(TriggerExit); }