Beispiel #1
0
        void Awake()
        {
            instance = this;

            o_set_panel      = GameObject.Find("scene_setting");
            o_set_music      = GameObject.Find("scene_setting/sd_music").GetComponent <Transform> ();
            o_set_effect     = GameObject.Find("scene_setting/sd_effect").GetComponent <Transform> ();
            o_set_btn_effect = GameObject.Find("scene_setting/btn_effect");
            o_set_btn_music  = GameObject.Find("scene_setting/btn_music");
            o_btn_speak_set  = GameObject.Find("scene_setting/btn_speak");
        }
Beispiel #2
0
 void OnDestroy()
 {
     instance = null;
 }