public void Attack(IPray pray) { if (this.AttackSpeed > pray.FleeSpeed) { Console.WriteLine(Name + " catches and eat " + pray.Name); } else { Console.WriteLine(pray.Name + " escapes from " + this.Name); } }
public void Attack(IPray pray) { if (this.AttackSpeed > pray.FleeSpeed) { Console.WriteLine($"{this.Name } catches {pray.Name}"); } else { pray.Flee(); } }
public void Attack(IPray pray) { if (this.AttackSpeed > pray.FleeSpeed) { Console.WriteLine(Name + " hits him with the horns " + pray.Name); } else { Console.WriteLine(pray.Name + " escapes from " + this.Name); } }
private IEnumerator CallYS() { for (int i = 0; i < prayStack; i++) { IPray p = prayPool[Random.Range(0, prayPool.Count)]; p.ResolvePray(this); prayPool.Remove(p); while (isAnimating) { yield return(null); } yield return(new WaitForSeconds(0.5f)); } prayPool.Clear(); prayStack = 0; UIManager.UpdateYoggStack(prayStack); }