input/output + refactoring

This commit is contained in:
klemek
2020-12-16 19:00:40 +01:00
parent eeaf611158
commit 1a70942e8e
23 changed files with 1272 additions and 52 deletions
+4
View File
@@ -14,6 +14,8 @@ namespace UntitledLogicGame.Workspace
#region Public Properties
public bool Hovering { get; internal set; }
#endregion
#region Private Properties
@@ -38,12 +40,14 @@ namespace UntitledLogicGame.Workspace
private void OnMouseEnter()
{
GameManager.Instance.CurrentGate = _gate;
Hovering = true;
}
private void OnMouseExit()
{
if (_gate.Equals(GameManager.Instance.CurrentGate))
GameManager.Instance.CurrentGate = null;
Hovering = false;
}
#endregion