Exemplo n.º 1
0
 private void OnDestroy()
 {
     if (current == this)
     {
         current = null;
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     current         = this;
     colliderTrigger = GetComponent <Collider2D>();
 }