Пример #1
0
 public void TransitionScreen()
 {
     screenTransitionTimer = 1f;
     FadeOut       = false;
     FadeIn        = true;
     currentScreen = nextScreen;
     nextScreen    = null;
 }
Пример #2
0
    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);
    }
Пример #3
0
 public void ChangeScreen(ScreenParent newScreen)
 {
     nextScreen            = newScreen;
     screenTransitionTimer = 1f;
     FadeOut = true;
 }
Пример #4
0
 public void Draw()
 {
     GUI.Box(baseRect, "", GameManager.instance.standardBackGround);
     GUI.Label(timeRect, ScreenParent.GetFormatedTime(Time));
 }