Example #1
0
    /// <summary>
    /// Used to initialise the singleton World object
    /// </summary>
    internal void Awaken()
    {
        Instance = this;

        _kernel = Flow.Create.NewKernel();

        // TODO: combine scenes
        _loaded = true;
    }
Example #2
0
    /// <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);
    }
Example #3
0
    /// <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);
    }