public void Activate() { Service.Cameras.SwitchToCamera(CameraType.Drafting); vertexCreationController = new VertexCreationController(); GameObject mainUI = GameObject.Find("GUI_EditorInterface(Clone)"); uiPanel = new DraftPanel(EditorUtils.FindGameObject(mainUI, "DraftPanel")); }
//Show draft phase interface public void ShowDraftPanel() { draftPanel.SetActive(true); DraftPanel draft = draftPanel.GetComponent <DraftPanel>(); int bonus = draftBattalions - baseBattalionAmount; draft.description.text = " You have placed: " + placedBattalions.ToString(); draft.description1.text = remainingBattalions + " battalions to place!"; draft.description2.text = "Bonus: " + bonus.ToString(); draft.description3.text = "Bought: " + boughtBattalions.ToString(); draft.description4.text = draftBattalions.ToString() + " battalions total!"; GameManager.instance.FortifyDone = false; }