Exemple #1
0
    private void FillData()
    {
        switch (pageType)
        {
        case PageType.CHALLENGER_PROFILE:
            gameObject.GetComponent <DummyChallengerProfile> ().FillInformation(resource[12]);
            triggerExitEvent = new exitEvent(RefreshSecondaryPage);
            break;

        case PageType.CHALLENGE_INFO:
            gameObject.GetComponent <DummyChallengeInfo> ().FillData(resource, DummyPullDataFromID.GetActiveAccountType());
            triggerExitEvent = new exitEvent(RefreshMasterPage);
            break;

        case PageType.EDIT_PROFILE:
            gameObject.GetComponent <DummyEditInformation> ().FillData(resource);
            gameObject.GetComponent <DummyEditInformation> ().ToggleSavebutton(true);
            triggerExitEvent = new exitEvent(ExitEditProfile);
            break;

        case PageType.CHALLENGER_EDIT_PROFILE:
            gameObject.GetComponent <DummyEditChallengerProfile> ().FillData(resource);
            gameObject.GetComponent <DummyEditChallengerProfile> ().ToggleSavebutton(true);
            triggerExitEvent = new exitEvent(ExitChallengerEditProfile);
            break;

        case PageType.CHALLENGER_EDIT_CHALLENGE:
            gameObject.GetComponent <DummyEditChallenge> ().FillData(resource);
            triggerExitEvent = new exitEvent(ExitChallengerEditChallenge);
            break;

        case PageType.CHALLENGER_NEW_CHALLENGE:
            gameObject.GetComponent <DummyAddChallenge> ().SetupPage();
            triggerExitEvent = new exitEvent(RefreshMasterPage);
            break;

        case PageType.CHALLENGER_LEAVE_FEEDBACK:
            gameObject.GetComponent <LeaveFeedback> ().FillData(resource, DummyPullDataFromID.PullPersonalInformation()[0]);
            triggerExitEvent = new exitEvent(RefreshSecondaryPage);
            break;
        }
        anim.SetInteger("Show", 1);
    }
Exemple #2
0
    public void ResetPage()
    {
        string[] refresh = DummyPullDataFromID.PullArrayByID(resID);

        FillData(refresh, DummyPullDataFromID.GetActiveAccountType());
    }