// Start is called before the first frame update void Start() { // Assign variables specialEventInvoker = GetComponent <SpecialEventInvoker>(); buttonGroupRectTransform = optionObj.transform.parent.GetComponent <RectTransform>(); continueButton = ContinueButtonLinear.Instance; cameraTransform = Camera.main.transform; bioRect = bioText.gameObject.GetComponent <RectTransform>(); scenarioPanelRect = scenarioText.transform.parent.GetComponent <RectTransform>(); bioObj.SetActive(false); // FOR TESTING ONLY //foreach (KeyValuePair<string, Bio> thisPair in biosDict) //{ // Debug.Log(thisPair.Key); // Debug.Log(thisPair.Value.stats); // Debug.Log(thisPair.Value.description); //} //foreach (KeyValuePair<string, Question> thisPair in scenariosLinearDict) //{ // Debug.Log(thisPair.Key + ": " + thisPair.Value.text); // foreach (Option thisOption in thisPair.Value.optionsList) // { // Debug.Log(thisOption.letter + ": " + thisOption.text); // Debug.Log(thisOption.comment + " Pts: " + thisOption.pointsWorth); // } //} // Load up the first scenario StartCoroutine(TransitionToNewScenarioLinear("1-1", true)); }
void Awake() { if (Instance == null) { Instance = this; } else { Debug.LogError("Uhhh why are there two ContinueButtons in the scene?", gameObject); } }