void Awake() { o_panel = GameObject.Find("scene_effect"); o_effect_bomb = GameObject.Find("scene_effect/sp_effect_bomb"); o_effect_plane = GameObject.Find("scene_effect/sp_effect_plane"); o_effect_rocket = GameObject.Find("scene_effect/sp_effect_rocket"); o_effect_bei = GameObject.Find("scene_effect/sp_effect_bei"); if (instance == null) { instance = this; } }
private void OnDestroy() { instance = null; }