private void PowerDown() { if (manager != null) { manager.OrbDestroyed(); } Destroy(gameObject); }
private void PowerDown() { CaptureSceneManager manager = FindObjectOfType <CaptureSceneManager>(); if (manager != null) { manager.OrbDestroyed(); } Destroy(gameObject); }