Beispiel #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;
    }
Beispiel #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);
    }
Beispiel #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);
    }