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
+1 -4
View File
@@ -26,7 +26,6 @@ namespace UntitledLogicGame.UI
gameObject.name = "UI_" + _gatePrefab.GateType.ToString();
}
}
public RectTransform RectTransform
{
get
@@ -50,9 +49,7 @@ namespace UntitledLogicGame.UI
public void OnPointerDown(PointerEventData eventData)
{
var position = Camera.main.ScreenToWorldPoint(transform.position);
position.z = 0f;
GameManager.Instance.CreateGate(_gatePrefab, position);
GameManager.Instance.CreateGate(_gatePrefab);
}
#endregion