示例#1
0
        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);
            }
        }
示例#2
0
 public virtual void Init(EnvironmentMgr mgr)
 {
     environmentMgr = mgr;
 }
示例#3
0
 public override void Init()
 {
     playerMgr      = AddComponent(new PlayerMgr());
     environmentMgr = AddComponent(new EnvironmentMgr());
 }