void GetStarReward(GameObject healthParent) { //if we've destroyed an attacker, we want some stars if (healthParent.GetComponent <Attacker> ()) { starDisplay.AddStars(20); } //if we're on easy difficulty, we want more stars when a defender is destroyed too int difficulty = Mathf.RoundToInt(PlayerPrefsManager.GetDifficulty()); if (difficulty == 1 && healthParent.GetComponent <Defender> ()) { starDisplay.AddStars(50); } }
public void AddStars(int amount) { if (starDisplay) { starDisplay.AddStars(amount); } }
private void TrySpawnDefender(Vector2 gridPos) { if (starDisplay.HaveEnoughStars(defender.GetStarCost())) { SpawnDefender(gridPos); starDisplay.AddStars(-defender.GetStarCost()); } }
private void UpdateCurrency() { var attacker = GetComponent <Attacker>(); if (attacker) { _starDisplay.AddStars(attacker.StarReward); } }
private IEnumerator AddStars() { do { yield return(new WaitForSeconds(Random.Range(mintime, maxtime))); starDisplay.AddStars(stars); PlayVFX(); }while (looping); }
public void AddStars(int amountToAdd) { StarDisplay temp = FindObjectOfType <StarDisplay>(); if (temp != null) { Debug.Log("Adding Stars"); temp.AddStars(amountToAdd); } }
public void AddStars(int amount) { display.AddStars(amount); }
void addSomeStars(int stars) { starDisplay.AddStars(stars); }
public void AddStars(int amount) { _starDisplay.AddStars(amount); }
public void AddStar() { _starDisplay.AddStars(baseStarsToAdd - PlayerPrefsController.GetDifficulty()); }
public void AddStars(int amount) { print(amount); StarDisplay.AddStars(amount); }
public void AddStars() { starDisplay.AddStars(starAmount); Instantiate(starPrefab, starSpawnPoint); }
public void AddStars() { starDisplay.AddStars(); }
//This method is tied to the animation of the star creation and passes in the int 10 for value of a star public void AddStars(int amount) { //This calls the starDisplay script method and passes the 10 int from animation variable starDisplay.AddStars(amount); }
void AddStars(int amount) { //Debug.Log (amount + "stars added"); starDisplay.AddStars(amount); }
public void AddStars(int amount) { starDisplay.AddStars(10); }
void AddStars(int starsCount) { starDisplay.AddStars(starsCount); }
public void AddStars(int amount) { StarDisplay starDisplay = FindObjectOfType <StarDisplay>(); starDisplay.AddStars(amount); }
public void AddStars(int stars) { starDisplay.AddStars(stars); //Debug.Log(stars); }
public void AddStars(int numStars) { starDisplay.AddStars(numStars); }
public void MakeStars(int stars) { starDisplay.AddStars(stars); }
public void AddStars(int amount) { starDisp.AddStars(amount); }
public void AddStars(int number) { starDisplay.AddStars(number); }
void OnMouseDown() { starDisplay.AddStars(value); animator.SetTrigger("Picked"); }
void AddStars(int amount) { starDisplay.AddStars(amount); }
//Just a tag public void AddStarts(int amount) { Debug.Log("Opa, add estrelas!"); starDisplay.AddStars(amount); }
private void AddStars(int amount) { _starDisplay.AddStars(amount); }
//this method called from the animation public void AddStars(int amount) { //then pass the value to text diaplay thru StarDisplay.cs AddStars method starDisplay.AddStars(amount); }
public void AddStars(int amount) { //Star Amount in the Star Fire Animation Currently Set to 10 starDisplay.AddStars(amount); }
public void AddStars(int amount) { starDisplay.AddStars(amount); //print (amount + " stars added"); }