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(); } }