/// <summary> /// Create the buttons which represent the choices of the specified decision /// </summary> /// <param name="decision"></param> private void CreateButtonsForDecision(SimulationScene scene) { // Get the routes scene.GetRoutes(decisionChoices); // Store all active buttons ClearActiveButtons(); // Create UI choices foreach (int i in decisionChoices) { // Try to get the decision for the choice index SimulationScene iScene; if (scene.GetSceneFromRoute(i, out iScene)) { string decisionText = "DEFAULT BUTTON\nTEST";// iScene.GetDisplayTitle(); PlaceButton(i, decisionText); //// Try to get the current override title or if not, the next title. //string decisionText; //if(decision.GetAttribute("OVERRIDE_TITLE", out decisionText) || iDecision.GetAttribute("TITLE", out decisionText)) //{ // PlaceButton(i, decisionText); //} //else // Failed to get title //{ // Debug.LogWarning("Failed to get title from decision with ID: " + i); //} } else // Failed to get decision { Debug.LogWarning("Failed to get decision from ID: " + i); } } }