public void setup(BattlefieldPositionManager positionManager) { this.positionManager = positionManager; updateAllUI(); messageBoxUI = Instantiate(messageBoxUIPrefab, baseCanvas.transform).GetComponent <MessageBoxScript>(); messageBoxUI.clear(); messageBoxUI.setVisible(false); //Likely not useful any more /* * battleMenuUI = Instantiate(battleMenuUIPrefab, baseCanvas.transform); * battleMenuUI.name = "Battle Menu"; * ((RectTransform)battleMenuUI.transform).anchorMin = new Vector2(0.55f, 0f); * ((RectTransform)battleMenuUI.transform).anchorMax = new Vector2(1f, 0.4f); * battleMenuUI.SetActive(false); */ }
public void createTextBox(string message, bool requireInput) { messageBoxUI.clear(); messageBoxUI.setVisible(true); messageBoxUI.enqueueText(message, requireInput); }