private void AddHighScorePoints(int playerId, PointType damageType) { Player toReward = player[playerId]; int points = HighScoreLogic.CalculatePoints(player[playerId], damageType); toReward.addScore(points); }
void Start() { score = 0; // find highscore highScore = GameObject.Find("HighScore").GetComponent("HighScoreLogic") as HighScoreLogic; infoText = GameObject.Find("InfoText"); UpdateSpawnValues(); UpdateScore(); StartCoroutine(SpawnWaves()); // auto run infoText.GetComponent <Text>().text = "KDAMDAN!"; infoText.GetComponent <Animator>().SetTrigger("RunOutro"); }