Exemple #1
0
 private void OnTriggerStay2D(Collider2D other)
 {
     if (dropped == null)
     {
         dropped = other.gameObject.GetComponent <Acceptable>();
     }
 }
Exemple #2
0
 protected virtual void OnDestroy()
 {
     cam     = null;
     dropped = null;
 }
Exemple #3
0
 private void OnTriggerExit2D(Collider2D other)
 {
     dropped = null;
 }
Exemple #4
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     dropped = other.gameObject.GetComponent <Acceptable>();
 }