Exemplo n.º 1
0
    private void AddHighScorePoints(int playerId, PointType damageType)
    {
        Player toReward = player[playerId];

        int points = HighScoreLogic.CalculatePoints(player[playerId], damageType);

        toReward.addScore(points);
    }
Exemplo n.º 2
0
    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");
    }