예제 #1
0
        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;
            }
        }
예제 #2
0
 private void OnDestroy()
 {
     instance = null;
 }