// Start is called before the first frame update void Start() { // title text settings tmpTitleText.alignment = TextAlignmentOptions.Center; tmpTitleText.alignment = TextAlignmentOptions.Midline; tmpTitleText.fontStyle = FontStyles.UpperCase; // set initial scene state titleScreenState = TitleScreenStates.WaitForInput; }
private IEnumerator FlashTitleText() { // flash the key press text for (int i = 0; i < 5; i++) { alphaKeyPressText = 0; yield return(new WaitForSeconds(0.1f)); alphaKeyPressText = 255; yield return(new WaitForSeconds(0.1f)); } // finally hide it alphaKeyPressText = 0; yield return(new WaitForSeconds(0.1f)); // move to the next scene state titleScreenState = TitleScreenStates.NextScene; }
// Start is called before the first frame update void Start() { // adjust settings based on set resolution scale switch (GameManager.Instance.GetResolutionScale()) { case GameManager.ResolutionScales.Scale4x3: // move the title text anchored position tmpTitleText.rectTransform.anchoredPosition = new Vector3(0, -350f); break; } // title text settings tmpTitleText.alignment = TextAlignmentOptions.Center; tmpTitleText.alignment = TextAlignmentOptions.Midline; tmpTitleText.fontStyle = FontStyles.UpperCase; // set initial scene state titleScreenState = TitleScreenStates.WaitForInput; }