public void TransitionScreen() { screenTransitionTimer = 1f; FadeOut = false; FadeIn = true; currentScreen = nextScreen; nextScreen = null; }
public QuitResumeSubScreen(ScreenParent parent, QuitFunction quit) { screenParent = parent; quitFunction = quit; Vector2 ButtonSize = new Vector2(Screen.width * 0.084f, Screen.height * 0.045f); float Indent = (Screen.width - ButtonSize.x) / 2f; ResumeButtonRect = new Rect(new Vector2(Indent, Screen.height * 0.4f), ButtonSize); OptionsButtonRect = new Rect(new Vector2(Indent, ResumeButtonRect.yMax), ButtonSize); QuitButtonRect = new Rect(new Vector2(Indent, OptionsButtonRect.yMax), ButtonSize); }
public void ChangeScreen(ScreenParent newScreen) { nextScreen = newScreen; screenTransitionTimer = 1f; FadeOut = true; }
public void Draw() { GUI.Box(baseRect, "", GameManager.instance.standardBackGround); GUI.Label(timeRect, ScreenParent.GetFormatedTime(Time)); }