/// <summary> /// loads input field into program /// loads initial game interface values /// activates the loaded input field /// </summary> void Start() { _input = this.GetComponent <InputField>(); _submit = new InputField.SubmitEvent(); _submit.AddListener(SubmitInput); _input.onEndEdit = _submit; //Initialized state for game, loaded from db. int lcHealth = GameManager.GameManagerInstance.GameModelInstance.DataServiceInstance.GetHealth(GameManager.GameManagerInstance.GameModelInstance._currentPlayer._email); _healthOutput.text = lcHealth.ToString(); string lcStory = GameManager.GameManagerInstance.GameModelInstance.DataServiceInstance. GetStory( GameManager.GameManagerInstance.GameModelInstance._currentPlayer._email ); _output.text = lcStory.ToString() + CommandProcessor.AvailableActions(GameManager.GameManagerInstance.GameModelInstance._currentPlayer); //if (GameManager.GameManagerInstance.ActiveCanvas.name != "cnvInventory" & GameManager.GameManagerInstance.ActiveCanvas.name != "cnvMap") //{ //_output.text = CommandProcessor.StoryDisplay(GameManager.GameManagerInstance.GameModelInstance._currentPlayer); //} _input.ActivateInputField(); }