Esempio n. 1
0
 public static void OnChallengeDone(ChallengeData p_challenge, E_RESULT_STATE p_state, string p_talk)
 {
     challengeResultBox.Talk(p_talk);
     p_challenge.state = p_state;
     challengeButDict[p_challenge.name].RefreahState();
     PlayerPrefs.SetInt(p_challenge.name, (int)p_state);
 }
Esempio n. 2
0
    public void ShowResult(TestItem p_test, List <TestField> p_challengerResults, E_RESULT_STATE p_resultState)
    {
        var _resultView = Instantiate(resultViewPrefab, scrollRect.content.transform);

        _resultView.Init(p_test, p_challengerResults, p_resultState);
        resultViews.Add(_resultView);
        ToBottom();
    }
Esempio n. 3
0
    public void Init(TestItem p_test, List <TestField> p_challengerResults, E_RESULT_STATE p_resultState)
    {
        title.text = p_test.showText;

        string _temp = p_test.inputText;

        input.text = (_temp != "") ? _temp : "(無)";

        _temp = p_test.expectedResultText;
        expectedResult.text = (_temp != "") ? _temp : "(無)";
        expectedTop.SetActive(p_resultState == E_RESULT_STATE.Fail);

        _temp = TestField.FieldsToString(p_challengerResults);
        challengerResult.text = (_temp != "") ? _temp : "(無)";


        mark.sprite = MainManager.GetMark(p_resultState);
    }
Esempio n. 4
0
 internal virtual void Init(int p_index, E_RESULT_STATE p_state)
 {
     index = p_index;
     state = p_state;
 }
Esempio n. 5
0
 internal static Sprite GetMark(E_RESULT_STATE p_resultState)
 {
     return(instance.marks[(int)p_resultState]);
 }