SanAndreasUnity/Assets/Scripts/UI/WorldStatsWindow.cs
2020-05-31 19:07:22 +02:00

36 lines
563 B
C#

using System.Collections.Generic;
using UnityEngine;
namespace SanAndreasUnity.UI {
public class WorldStatsWindow : PauseMenuWindow {
WorldStatsWindow() {
// set default parameters
this.windowName = "World stats";
this.windowRect = new Rect(10, 10, 250, 330);
}
void Start () {
this.RegisterButtonInPauseMenu ();
}
protected override void OnWindowGUI ()
{
if (Behaviours.World.Cell.Instance != null) {
Behaviours.World.Cell.Instance.showWindow (this.WindowId);
}
}
}
}