Пример #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (OscarEnterDetecter.IsOscar(other.gameObject))
     {
         Oscar.Instance.SetIdle(true);
     }
 }
Пример #2
0
 void OnCollisionEnter2D(Collision2D other)
 {
     if (OscarEnterDetecter.IsOscar(other.gameObject))
     {
         StartCoroutine(Explosion());
     }
 }