public incrementHype ( bool increment ) : int | ||
increment | bool | |
return | int |
public int incrementHype(bool increment)
{
if (HYPE < 6 && !HYPED) HYPE++;
else if (HYPE == 6 && !increment) HYPE = 0;
return HYPE;
}
virtual public void Hurt(float damage) { if (State == DinoState.IDLE) { State = DinoState.ATTACK; } health -= damage; if (health <= 0) { money.At(transform.position, Random.Range((int)(10 * Multiplier.moneyDrop), (int)(50 * Multiplier.moneyDrop))); HYPECounter.incrementHype(true); //Increment HYPE twice for big kill HYPECounter.incrementHype(true); Destroy(gameObject); } }