Пример #1
0
        public static string GenerateMissionId(string missId, TalkDataMissionType talkDataMissionType)
        {
            string result = string.Empty;

            switch (talkDataMissionType)
            {
            case TalkDataMissionType.Task:
                result = "task-" + missId;
                break;

            case TalkDataMissionType.Level:
                result = "level-" + missId;
                break;

            case TalkDataMissionType.Tutorial:
                result = "tutorial-" + missId;
                break;
            }
            return(result);
        }
Пример #2
0
 public void TDGAMissionOnCompleted(string missId, TalkDataMissionType talkDataMissionType)
 {
     TDGAMission.OnCompleted(GenerateMissionId(missId, talkDataMissionType));
 }
Пример #3
0
 public void TDGAMissionOnBegin(string missId, TalkDataMissionType talkDataMissionType)
 {
     TDGAMission.OnBegin(GenerateMissionId(missId, talkDataMissionType));
 }