Files
ProjectBall.Unity/Assets/Scripts/Menu/AuthorsMenu.cs
T

42 lines
1.0 KiB
C#
Raw Normal View History

2025-05-13 05:18:03 +03:00
using UnityEngine;
using System.Collections;
public class AuthorsMenu : MenuLayer {
public override string Name { get {return "AuthorsMenu"; } }
public override void Draw(){
float w = (float)Screen.width;
float h = (float)Screen.height;
float boxWidth = 300;
float boxHeight = 200;
float boxOffsetX = (w - boxWidth) * 0.5f;
float boxOffsetY = (h - boxHeight) * 0.5f;
Rect boxRect = new Rect (boxOffsetX, boxOffsetY, boxWidth, boxHeight);
GUI.Box (boxRect, "");
float buttonHeight = 50;
float buttonWidth = 150;
float buttonMargin = 10;
GUI.Label (new Rect (boxRect.center.x - buttonWidth * 0.5f,
(boxRect.yMax - (buttonHeight + buttonMargin) * 2), buttonWidth, buttonHeight), "L-proger");
if (GUI.Button (new Rect (boxRect.center.x - buttonWidth * 0.5f,
(boxRect.yMax - buttonHeight - buttonMargin), buttonWidth, buttonHeight), "Назад")) {
manager.ActivatePreviousMenu();
}
}
public override void Enter(){
}
public override void Leave(){
}
}