Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        currentObj          = GetComponent <ObjectiveSC>().currentObjective;
        potentialScore.text = currentObj.maxScore.ToString();

        updateEndScore();
    }
    public void nextObjective()
    {
        if (completedObjectives <= objectives.Count)
        {
            currentObjective          = objectives[completedObjectives];
            currentObjective.maxScore = 1000;
            stop = false;
            objectiveText.text = currentObjective.task;

            possibleScoreText.text = currentObjective.maxScore.ToString();
        }
    }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     currentObj          = GetComponent <ObjectiveSC>().currentObjective;
     characterScore.text = character.Score.Amount.ToString();
 }