void OnDeath() { if (transform.position.y < -5) { //fell out of world } else { FollowCamera camera = RoadTileManager.checkpoint.FollowCamera; if (Vector3.Distance(transform.position, camera.target.transform.position) > camera.CullDistance) { // Culled } else if (RoadTileManager.bMainMenu) { // Main Menu screen } else { Killcount.AddKill(); if (Killcount.GetKills() % 10 == 0) { Currency.AddCurrency(); } } } }
private void UpdateKillCount() { Killcount.UpdateKillcount(addValue); }
void Update() { scoreText.text = "Score: " + Killcount.GetKills() * 10; }
private void ResetKillcount() { Killcount.Reset(); }
void Update() { text.text = "Zombies Killed: " + Killcount.GetKills(); }
// Use this for initialization void Start() { Killcount.Reset(); }