SanAndreasUnity/Assets/Scripts/UI/WorldStatsWindow.cs

37 lines
563 B
C#
Raw Normal View History

2020-05-31 17:07:22 +00:00
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);
}
}
}
}