Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        ScoreInfo scoreInfo1 = CollisionBug.EvaluateScore();
        ScoreInfo scoreInfo2 = AmmoHealthBug.EvaluateScore();

        text.text = initialText + (scoreInfo1.penalty + scoreInfo2.penalty);
    }
Exemple #2
0
    // Update is called once per frame
    void Update()
    {
        ScoreInfo scoreInfo = AmmoHealthBug.EvaluateScore();

        text.text = initialText + scoreInfo.score + "/" + scoreInfo.maxScore;
    }
 void Awake()
 {
     Instance    = this;
     Random.seed = RandomManager.seed;
     AmmoHealthBug.ClearBugs();
 }