void OnTriggerEnter2D(Collider2D otherP) { MoveWithInput controller = otherP.GetComponent <MoveWithInput>(); if (controller != null) { if (ShouldConsumePill(controller)) { ConsumePill(controller); PillPusher.PushPill(transform.position); Destroy(gameObject); } } }
private void OnDestroy() { s_Pusher = null; }
private void Start() { s_Pusher = this; }