mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-12-21 01:43:06 +00:00
37 lines
563 B
C#
37 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);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|