public void triggerTransmission() { textBackScript.fadeInBack(); glassTargetScale = glassStartScale; /* * if (!glassLayer.gameObject.activeSelf) * { * glassLayer.gameObject.SetActive(true); * } */ isTriggered = true; }
public void showMessage(string bodyText) { Debug.Log("show start message with body: " + bodyText); textBack.fadeInBack(); this.transform.localScale = startScale; fadeOutTimer = 0f; textKeyTimer = 0f; charCount = -1; isTriggered = true; displayString = ""; contentString = ""; txtMesh.text = ""; //displayString = bodyText; beginningString = "It is over for us.\nThis is " + NameGenerator.getNewName() + "'s final transmission...\n"; contentString += beginningString + bodyText + "\n...............end"; charThreshold = contentString.Length; Debug.Log("content length:" + contentString.Length); Debug.Log("char:" + charThreshold); }