/// <summary> /// This method is called when a portal is selected and want to destroy it. /// </summary> public void DestroyPortal(GameObject obj) { PlayDestroyAnimation(); controller.DestroyPortals(); //Calls the portal controller to destroy the portals if (second_portal != null) { second_portal.GetComponent <Portal>().PlayDestroyAnimation(); } }