Пример #1
0
 private void PowerDown()
 {
     if (manager != null)
     {
         manager.OrbDestroyed();
     }
     Destroy(gameObject);
 }
Пример #2
0
    private void PowerDown()
    {
        CaptureSceneManager manager = FindObjectOfType <CaptureSceneManager>();

        if (manager != null)
        {
            manager.OrbDestroyed();
        }
        Destroy(gameObject);
    }