Пример #1
0
 private void OnDestroy()
 {
     ProviderDestroyed.Invoke(gameObject);
 }
Пример #2
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     ProviderDestroyed.Invoke(gameObject);
 }