/// <summary> /// Used to initialise the singleton World object /// </summary> internal void Awaken() { Instance = this; _kernel = Flow.Create.NewKernel(); // TODO: combine scenes _loaded = true; }
/// <summary> /// Used to initialise the singleton World object /// </summary> internal void Awaken() { if (Instance != null) { return; } Instance = this; _kernel = Flow.Create.NewKernel(); _player = FindObjectOfType <Player>(); GameCanvas = FindObjectOfType <GameCanvasController>(); _gateManager = FindObjectOfType <GateManager>(); _game = FindObjectOfType <Game>(); // TODO: combine scenes _loaded = true; ActivateGame(false); }
/// <summary> /// Used to initialise the singleton World object /// </summary> internal void Awaken() { if (Instance != null) return; Instance = this; _kernel = Flow.Create.NewKernel(); _player = FindObjectOfType<Player>(); GameCanvas = FindObjectOfType<GameCanvasController>(); _gateManager = FindObjectOfType<GateManager>(); _game = FindObjectOfType<Game>(); // TODO: combine scenes _loaded = true; ActivateGame(false); }