Exemplo n.º 1
0
        public static ActivityData GetActivityData(int activityDataID)
        {
            ActivityData activityData = null;

            ActivityDataDictionary.TryGetValue(activityDataID, out activityData);
            return(activityData);
        }
Exemplo n.º 2
0
        void Start()
        {
            List <ActivityData> allActivityDataList = ActivityData.GetAllActivityData();
            int activityDataCount = allActivityDataList.Count;

            for (int i = 0; i < activityDataCount; i++)
            {
                ActivityInfo activityInfo = new ActivityInfo(allActivityDataList[i]);
                _activityInfoDictionary.Add(activityInfo.ActivityID, activityInfo);
            }
        }
Exemplo n.º 3
0
 public ActivityInfo(ActivityData activityData)
 {
     _activityID   = activityData.id;
     _activitydata = activityData;
 }