public override void Init(EnvironmentMgr mgr) { base.Init(mgr); m_MatSkyBox = RenderSettings.skybox; var mainLightGo = GameObject.FindGameObjectWithTag(TagDefine.TAG_MAINLIGHT); var moonLightGo = GameObject.FindGameObjectWithTag(TagDefine.TAG_MOONLIGHT); if (mainLightGo != null && moonLightGo != null) { m_MainLight = mainLightGo.GetComponent <Light>(); m_MoonLight = moonLightGo.GetComponent <Light>(); SetLightRotation(environmentMgr.time); } }
public virtual void Init(EnvironmentMgr mgr) { environmentMgr = mgr; }
public override void Init() { playerMgr = AddComponent(new PlayerMgr()); environmentMgr = AddComponent(new EnvironmentMgr()); }