Ejemplo n.º 1
0
    public override void StartProcess(params object[] args)
    {
        base.StartProcess(args);

        _battleLogicObject = MonoBehaviourHelper.CreateObject("BattlefieldRoot");

        _battleLogicObject.StartCoroutine(LoadBattleScene());
    }
Ejemplo n.º 2
0
 public override void StartProcess(params object[] args)
 {
     base.StartProcess(args);
     //显示ui
     if (_finalObject == null)
     {
         _finalObject = MonoBehaviourHelper.CreateObject("FinalObject");
     }
     _finalObject.StartCoroutine(LoadMainMenuScene());
 }
Ejemplo n.º 3
0
 public override void StartProcess(params object[] args)
 {
     base.StartProcess(args);
     //显示ui
     if (_titleLogicObject == null)
     {
         _titleLogicObject = MonoBehaviourHelper.CreateObject("MainMenuRoot");
     }
     _titleLogicObject.StartCoroutine(LoadMainMenuScene());
     //
     //ProcessManager.getInstance.Switch<BattlefieldProcess>();
 }
Ejemplo n.º 4
0
    public void Init()
    {
        soundsDict = new Dictionary <string, AudioClip>();
        var sd = Resources.Load <SoundData>("Sounds/SoundData");

        foreach (var sp in sd.audioClips)
        {
            soundsDict.Add(sp.soundName, sp.clip);
        }

        soundPlayers = new List <AudioSource>(SOUNDPLAYER_NUM);
        _gameObject  = MonoBehaviourHelper.CreateObject("SoundManager").gameObject;
        for (int i = 0; i < SOUNDPLAYER_NUM; ++i)
        {
            soundPlayers.Add(_gameObject.AddComponent <AudioSource>());
        }
        //临时将声音关闭
        SetMute(true);
    }