private void OnMouseOver() { if (Input.GetMouseButton(0) && isPlaceable) { towerFactory.AddTower(this); } }
private void OnMouseDown() { if (isPlaceable) { towerFactory.AddTower(this); } else { print("Can't place here!"); } }
private void HandPlayerNewTower() { if (isCarrying) { print("You can only carry one tower at a time"); } else { towerFactory.AddTower(); } }
void OnMouseDown() { if (isPlaceable) { towerFactory.AddTower(this); } else { return; } }
private void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { if (!isOccupied) { factory.AddTower(this); } else { Debug.Log("Max tower limit reaced!"); } } }
private void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { if (isPlaceable) { towerFactory.AddTower(this); } else { print("Can't touch this."); } } }
public void TowerOne() { towerFactory = new TowerFactory(); towerFactory.AddTower(towerOne); }