コード例 #1
0
    public void UpdateObjectiveText()
    {
        m_agentObjectiveTextScript.CompletedTask();
        m_currentObjectiveInt += 1;

        if (m_currentObjectiveInt >= m_objectives.Length)
        {
            m_introObjectives  = false;
            objectiveText.text = "";
        }
        else
        {
            objectiveText.text = string.Format("Current Objective: {0}", m_objectives[m_currentObjectiveInt]);
        }
    }
コード例 #2
0
 public void UpdateObjectiveText()
 {
     m_agentObjectiveTextScript.CompletedTask();
     m_currentObjectiveInt += 1;
     objectiveText.text     = m_currentObjectiveInt >= m_objectives.Length ? "" : string.Format("Current Objective: {0}", m_objectives[m_currentObjectiveInt]);
 }