refactoring again
This commit is contained in:
@@ -38,13 +38,9 @@ namespace UntitledLogicGame.Workspace
|
||||
Utils.RandomName("Input", gameObject);
|
||||
}
|
||||
|
||||
private void FixedUpdate()
|
||||
private void Update()
|
||||
{
|
||||
if ((Sprite.Hovering || OutputAnchor.Hovering) && PointerManager.Instance.DoubleClick())
|
||||
{
|
||||
State = !State;
|
||||
OutputAnchor.Activated = State;
|
||||
}
|
||||
UpdateState();
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -55,6 +51,15 @@ namespace UntitledLogicGame.Workspace
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void UpdateState()
|
||||
{
|
||||
if ((Sprite.Hovering || OutputAnchor.Hovering) && PointerManager.Instance.DoubleClick())
|
||||
{
|
||||
State = !State;
|
||||
OutputAnchor.Activated = State;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user