コード例 #1
0
ファイル: Scene.cs プロジェクト: vladimir-siv/open-world
 internal void _Init()
 {
     if (Initialized)
     {
         return;
     }
     XEngineState.Reset();
     Invalidate();
     Init();
     if (Lights.Count == 0)
     {
         Add(LightSource.Sun);
     }
     Sky.BeginCycle();
     InitTime    = DateTime.Now;
     Initialized = true;
     foreach (var gameObject in GameObjects)
     {
         gameObject.Awake();
     }
     foreach (var gameObject in GameObjects)
     {
         gameObject.Start();
     }
 }