Ejemplo n.º 1
0
    private void Awake()
    {
        this.GameDatabaseHolder = this.GetComponent <GameDatabaseHolder>();

        this.NodeIndex = -1;

        this.oldMapId = this.MapId;

        this.SetUp();

        this.Load();
    }
Ejemplo n.º 2
0
    private void Awake()
    {
        this.NodeIndex = -1;

        this.globalHook          = Hook.GlobalEvents();
        this.globalHook.KeyDown += this.GlobalHookKeyDown;

        this.GameDatabaseHolder = FindObjectOfType <GameDatabaseHolder>();
        if (this.GameDatabaseHolder == null)
        {
            SceneManager.LoadScene("Load");
            return;
        }

        this.Load();
    }
Ejemplo n.º 3
0
    private void Awake()
    {
        this.NodeIndex = -1;

        this.globalHook          = Hook.GlobalEvents();
        this.globalHook.KeyDown += this.GlobalHookKeyDown;

        this.GameDatabaseHolder = FindObjectOfType <GameDatabaseHolder>();
        if (this.GameDatabaseHolder == null)
        {
            SceneManager.LoadScene("Load");
            return;
        }

        this.Load();

        this.EditMode.gameObject.SetActive(true);
        this.FollowMode.gameObject.SetActive(false);
    }