void Start() { getStats(); UIManager_properties = UIManager.GetComponent <OverworldUIManager>(); transform.position = GameManager_properties.get_jerry_last_pos(); UIManager_properties.setUIValues(); }
void Start() { /////////////////////////////////////// // GET THE INVENTORY DATA STRUCTURES // /////////////////////////////////////// inv_controller_properties = GameObject.Find("ITEM_MANAGER").GetComponent <InventoryController>(); inv_amt = inv_controller_properties.getInventoryAmount(); try { overworldUI_properties = GameObject.Find("Overworld_UI").GetComponent <OverworldUIManager>(); } catch { } status = true; ///////////////// // CURSOR VARS // ///////////////// cursorSpawnPos = new Vector3(BACK.transform.position.x + 2f, BACK.transform.position.y); cursor_items = Instantiate(cursor, cursorSpawnPos, Quaternion.identity); //////////////////////////////////////////////////// // 'ITEM_GRID' SHOULD ALWAYS BE THE LAST CHILD... // //////////////////////////////////////////////////// childNum = this.gameObject.transform.childCount; itemGrid = this.gameObject.transform.GetChild(childNum - 1); displayInventory(); }
void Start() { //////////////////// // STATUS OF MENU // //////////////////// status = true; overworldUIManager = GameObject.Find("Overworld_UI"); //////////// // CURSOR // //////////// cursorSpawnPos = new Vector3(BACK.transform.position.x + 2f, BACK.transform.position.y); cursor_debug = Instantiate(cursor, cursorSpawnPos, Quaternion.identity); ////////////////////// // TEXT FIELD STUFF // ////////////////////// healthInput_text = healthInput.GetComponent <InputField>(); levelInput_text = levelInput.GetComponent <InputField>(); ///////////////////////// // OVERWORLD MANAGER // // UPDATE OVERWORLD UI // ///////////////////////// overworldUIManager_properties = overworldUIManager.GetComponent <OverworldUIManager>(); }
public static void Initialize() { CleanUp(); if (RuntimeData.system == null) { RuntimeData.GenerateNewSystem(); } RuntimeData.system.Instantiate(); if (!RuntimeData.system.pointsOfInterest.Contains(PlayerData.fleet)) { RuntimeData.system.AddPointOfInterest(PlayerData.fleet); } _random = new Random(RuntimeData.system.seed); //add slot for player //this was f*****g retarded _uiManager = OverworldUIManager.getInstance; _uiManager.Initialize(); _cameraManager = OverworldCameraManager.getInstance; _cameraManager.JumpTo(PlayerData.fleet.location); ToolbarManager.getInstance.Initialize(); //loading complete callback if (!ProgressData.Evaluate(ProgressPoint.ReceivedStartEvent)) { DialogueUIManager.getInstance.DisplayDialogueEvent(EventDB.GetStart()); } UpdateSpawnChance(); EndCurrentTurn(); }
void Awake() { _instance = this; }