private void RefreshPlanetStatus(PlanetObject po, float startTime) { if (po == null) { selected = false; SetChildrenVisible(originContainer.gameObject, true); //SetSunLightDirection(po, fakeSun); } else { selected = true; SetChildrenVisible(originContainer.gameObject, false); SetChildrenVisible(po.gameObject, true); if (expControl != null) { expControl.DoExplosion(cv_originContainer.transform.position, currentScaleFactor); } //Debug.Log(transform.position); } foreach (PlanetObject obj in planetMap.Values) { if (obj == po) { obj.selected = true; obj.animationStartUniverseTime = startTime; } else { if (obj.selected) { obj.animationStartUniverseTime = startTime; } obj.selected = false; } } }