private void Awake() { this.GameDatabaseHolder = this.GetComponent <GameDatabaseHolder>(); this.NodeIndex = -1; this.oldMapId = this.MapId; this.SetUp(); this.Load(); }
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(); }
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); }