protected virtual void ClearWindow() { resSev = null; audioSev = null; netSev = null; timerSev = null; }
protected virtual void InitWindow() { resSev = ResSev.Instance; audioSev = AudioSev.Instance; netSev = NetSev.Instance; timerSev = TimerSev.Instance; }
public void Init(int mapId) { resSev = ResSev.Instance; audioSev = AudioSev.Instance; stateMgr = gameObject.AddComponent <StateMgr>(); skillMgr = gameObject.AddComponent <SkillMgr>(); stateMgr.Init(); skillMgr.Init(); mapCfg = resSev.GetMapCfgData(mapId); resSev.AsyncLoadScene(mapCfg.sceneName, () => { GameObject map = GameObject.FindGameObjectWithTag("MapRoot"); mapMgr = map.GetComponent <MapMgr>(); mapMgr.Init(this); map.transform.localPosition = Vector3.zero; map.transform.localScale = Vector3.one; Camera.main.transform.position = mapCfg.mainCamPos; Camera.main.transform.localEulerAngles = mapCfg.mainCamRote; LoadPlayer(mapCfg); audioSev.PlayBGM(Constans.HuangYeBGM); ActiveCurrentBatchMonsters(); }); }
public virtual void InitSys() { DontDestroyOnLoad(this); resSev = ResSev.Instance; audioSev = AudioSev.Instance; netSev = NetSev.Instance; timerSev = TimerSev.Instance; }
public void Init() { resSev = ResSev.Instance; timerSev = TimerSev.Instance; }