Exemplo n.º 1
0
 void Sell()
 {
     if (turret.name == "Iceturret(Clone)" | turret.name == "UpgradedIceturret(Clone)")
     {
         Collider2D[] colliders = Physics2D.OverlapCircleAll(transform.position, turret.GetComponent <Tower>().range);
         StartCoroutine(Paththaw(colliders));
     }
     NetPlayer.Cmdsell(turret.GetComponent <NetworkIdentity>().netId, gameObject.GetComponent <NetworkIdentity>().netId);
     Player.Money += turretBlueprint.Sell();
 }