trash tool

This commit is contained in:
klemek
2020-12-16 15:45:44 +01:00
parent 78fe021014
commit a7c2f5bc4f
40 changed files with 662 additions and 34 deletions
+7 -4
View File
@@ -11,6 +11,7 @@ namespace UntitledLogicGame.UI
[Header("Components")]
public GameObject GateBar;
public GameObject MovingBar;
[Header("Prefabs")]
public UIGate UIGatePrefab;
@@ -41,16 +42,18 @@ namespace UntitledLogicGame.UI
uiGate.RectTransform.anchoredPosition = new Vector2(currentPos, 0);
currentPos += uiGate.RectTransform.sizeDelta.x;
}
MovingBar.SetActive(false);
}
private void FixedUpdate()
{
if(MouseManager.Instance.Interacting != _lastMouseInteracting)
if(PointerManager.Instance.Interacting != _lastMouseInteracting)
{
//TODO animate go down
GateBar.SetActive(!MouseManager.Instance.Interacting);
_lastMouseInteracting = MouseManager.Instance.Interacting;
GateBar.SetActive(!PointerManager.Instance.Interacting);
MovingBar.SetActive(PointerManager.Instance.MovingObject);
_lastMouseInteracting = PointerManager.Instance.Interacting;
}
}