void Start() { rb = GameObject.FindGameObjectWithTag("RageBar").GetComponent <Rage_Bar>(); gc = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameController>(); wasVulnerable = false; amDead = false; source = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { dashDistance = 0; cooldownTimer = 0; playAgainNextFrame = false; rage = GameObject.FindGameObjectWithTag("RageBar").GetComponent <Rage_Bar>(); source = GetComponent <AudioSource>(); source.PlayOneShot(bootUp); }
public void killEnemy(GameObject enemy) { timeFromLastKill = 0; enemy.GetComponent <Killable>().Hit(); rage = GameObject.FindGameObjectWithTag("RageBar").GetComponent <Rage_Bar>(); rage.AddRage(enemy.GetComponent <Killable>().rageVal); combo = GameObject.FindGameObjectWithTag("Combo").GetComponent <Combo>(); combo.AddCombo(1); combo.resetTimer(); score = GameObject.FindGameObjectWithTag("Score").GetComponent <Score>(); score.AddKills(1); }
void Start() { size = 1; rage = GameObject.FindGameObjectWithTag("RageBar").GetComponent <Rage_Bar>(); }