示例#1
0
        void OnTriggerEnter2D(Collider2D otherP)
        {
            MoveWithInput controller = otherP.GetComponent <MoveWithInput>();

            if (controller != null)
            {
                if (ShouldConsumePill(controller))
                {
                    ConsumePill(controller);
                    PillPusher.PushPill(transform.position);
                    Destroy(gameObject);
                }
            }
        }
示例#2
0
 private void OnDestroy()
 {
     s_Pusher = null;
 }
示例#3
0
 private void Start()
 {
     s_Pusher = this;
 }