Initial Commit
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
using UnityEngine;
|
||||
|
||||
#pragma warning disable 649
|
||||
|
||||
namespace Zenject.SpaceFighter
|
||||
{
|
||||
public class ControlsDisplay : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
float _leftPadding;
|
||||
|
||||
[SerializeField]
|
||||
float _topPadding;
|
||||
|
||||
[SerializeField]
|
||||
float _width;
|
||||
|
||||
[SerializeField]
|
||||
float _height;
|
||||
|
||||
public void OnGUI()
|
||||
{
|
||||
var bounds = new Rect(_leftPadding, _topPadding, _width, _height);
|
||||
GUI.Label(bounds, "CONTROLS: WASD to move, Mouse to aim, Left Mouse to fire");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user