Пример #1
0
 public void PlaceTurret(GameObject turretPrefab)
 {
     if (_shopManager.Purchase(turretPrefab.GetComponent <Turret>().TurretData))
     {
         _turretManager.CreateTurret(turretPrefab, new Vector3(transform.position.x, 1f, transform.position.z) + transform.forward);
     }
 }