Пример #1
0
        //private void Update()
        //{

        //}

        private 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;
 }