Exemple #1
0
    void Awake()
    {
        _instance = this;



        //씬이 메인메뉴로 넘어갈때 전투씬에 있던 오브젝트 전부 삭제 하기
        //Link_Script.ins.Battle_Effect_Destroy();



        //광고
        //AdsManager ad = AdsManager.instance;

        OptionSetting _optionSetting = OptionSetting.instance;

        LanguageManager.Getsingleton.SetLanguage((LanguageCode)_optionSetting.usingLangueage);

        //사운드매니저 오브젝생성
        SoundExecuter soundExc = SoundExecuter.Getsingleton;

        soundExc.ChkStartMusic(MUSIC_TYPE.LOBBY, true);        // 로비배경음 시작;
        ObjectPoolManager op = ObjectPoolManager.Getinstance;


        //linkScript 객체 생성하기
        Link_Script.i.LinkScript_Start();


        StartMain();
    }
Exemple #2
0
    public void AddSound()
    {
        int error = 0;

        for (int i = 0; i < sound.Count; i++)
        {
            if (soundtoadd.name == null || soundtoadd.name == sound[i].clip.name)
            {
                error++;
            }
        }
        if (error > 0)
        {
            Debug.LogError("Error you can add " + error + " item");
        }
        else
        {
            SoundExecuter soundadded = new SoundExecuter();
            soundadded.clip      = soundtoadd;
            soundadded.soundtype = soundclass;
            sound.Add(soundadded);
        }
    }