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
+3
View File
@@ -35,6 +35,7 @@ namespace UntitledLogicGame.Workspace
_activated = value;
}
}
public bool Hovering { get; internal set; }
#endregion
@@ -74,6 +75,7 @@ namespace UntitledLogicGame.Workspace
{
transform.localScale = _scale * ScaleIncrease;
GameManager.Instance.CurrentAnchor = this;
Hovering = true;
}
private void OnMouseExit()
@@ -81,6 +83,7 @@ namespace UntitledLogicGame.Workspace
transform.localScale = _scale;
if (Equals(GameManager.Instance.CurrentAnchor))
GameManager.Instance.CurrentAnchor = null;
Hovering = false;
}
private void OnDestroy()