Пример #1
0
 private void OnDestroy()
 {
     if (wallScript != null)
     {
         wallScript.DestroyUnit(gameObject);
     }
 }