// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Alpha1)) { PlayerAction = PlaceCube; } if (Input.GetKeyDown(KeyCode.Alpha2)) { PlayerAction = UpgradeTile; SelectedUpgrade = TreePrefab; } if (Input.GetKeyDown(KeyCode.Alpha3)) { PlayerAction = ClearTile; } touch = GetPointer(); if (touch != null) { PlayerAction(); } }
private void Start() { PlayerAction = PlaceCube; }