Beispiel #1
0
 /// <summary>
 /// test Initialize ---basic function only
 /// 把每个组件都初始化
 /// </summary>
 void Initialize()
 {
     um = new UpdateManager();
     um.Initialize();
     log = new Log();
     CoreTimer.Start();
 }
Beispiel #2
0
 public void Destroy()
 {
     um = null;
     pm = null;
     log = null;
     CoreTimer.Stop();
 }
Beispiel #3
0
        /// <summary>
        /// test Initialize ---basic function only
        /// 把每个组件都初始化
        /// </summary>
        void Initialize()
        {
            um = new UpdateManager();
            um.Initialize();
            pm = new PropertiesManager();
            pm.AddPropertyManager<Material>();
            pm.AddPropertyManager<State>();

            Material bbb = new Material("ssss",1.2f);
            ///((PropertyManager<Material>)Material.propertyManager).addProperty(bbb);

            State ccc = new State();
            ((PropertyManager<State>)State.propertyManager).addProperty(ccc);

            log = new Log();
            CoreTimer.Start();
        }