任务系统一半多,商城筛选功能,一些细节和免费包
This commit is contained in:
@@ -14,13 +14,16 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
tasks:
|
||||
- taskID: 10101
|
||||
description: "\u767B\u5F55\u6E38\u620F"
|
||||
description: "\u767B\u5F55\u6E38\u620Fv50"
|
||||
taskType: 0
|
||||
refreshFrequency: 1
|
||||
targetValue: 1
|
||||
rewardType: 0
|
||||
rewardAmount: 0
|
||||
rewardAmount: 50
|
||||
rewardExpBottleKind: 0
|
||||
rewardDushMaterialKind: 0
|
||||
addToTaskPool: 1
|
||||
selectionWeight: 1
|
||||
- taskID: 10102
|
||||
description: "\u5B8C\u62103\u9996\u6B4C\u66F2"
|
||||
taskType: 1
|
||||
@@ -28,28 +31,62 @@ MonoBehaviour:
|
||||
targetValue: 3
|
||||
rewardType: 0
|
||||
rewardAmount: 0
|
||||
rewardExpBottleKind: 0
|
||||
rewardDushMaterialKind: 0
|
||||
addToTaskPool: 1
|
||||
selectionWeight: 1
|
||||
- taskID: 10103
|
||||
description: "\u5B8C\u6210\u4E00\u6B2199\u8FDE\u51FB"
|
||||
description: "\u8FBE\u62101\u6B21Full Combo"
|
||||
taskType: 2
|
||||
refreshFrequency: 1
|
||||
targetValue: 99
|
||||
targetValue: 1
|
||||
rewardType: 0
|
||||
rewardAmount: 0
|
||||
rewardExpBottleKind: 0
|
||||
rewardDushMaterialKind: 0
|
||||
addToTaskPool: 1
|
||||
selectionWeight: 1
|
||||
- taskID: 10104
|
||||
description: "\u8FBE\u5230\u4E00\u6B21\u603B\u52061000000"
|
||||
description: "\u7D2F\u8BA1\u83B7\u5F971000000\u5206"
|
||||
taskType: 3
|
||||
refreshFrequency: 1
|
||||
targetValue: 1000000
|
||||
rewardType: 0
|
||||
rewardAmount: 0
|
||||
rewardType: 1
|
||||
rewardAmount: 4
|
||||
rewardExpBottleKind: 0
|
||||
rewardDushMaterialKind: 0
|
||||
addToTaskPool: 1
|
||||
selectionWeight: 1
|
||||
- taskID: 10105
|
||||
description: "\u4F7F\u7528\u4E00\u6B21\u9644\u9B54\u4E4B\u74F6"
|
||||
description: "\u4F7F\u7528\u4EFB\u610F\u7C7B\u578B\u7ECF\u9A8C\u74F6\u4E00\u6B21"
|
||||
taskType: 5
|
||||
refreshFrequency: 1
|
||||
targetValue: 1
|
||||
rewardType: 0
|
||||
rewardAmount: 0
|
||||
addToTaskPool: 0
|
||||
rewardExpBottleKind: 0
|
||||
rewardDushMaterialKind: 0
|
||||
addToTaskPool: 1
|
||||
selectionWeight: 1
|
||||
- taskID: 10106
|
||||
description: "\u82B1\u8D391000\u91D1\u5E01"
|
||||
taskType: 7
|
||||
refreshFrequency: 1
|
||||
targetValue: 1000
|
||||
rewardType: 0
|
||||
rewardAmount: 0
|
||||
rewardExpBottleKind: 0
|
||||
rewardDushMaterialKind: 0
|
||||
addToTaskPool: 1
|
||||
selectionWeight: 1
|
||||
- taskID: 10107
|
||||
description: "\u6E38\u620F\u65F6\u957F\u8FBE\u523030\u5206\u949F"
|
||||
taskType: 8
|
||||
refreshFrequency: 1
|
||||
targetValue: 1800
|
||||
rewardType: 0
|
||||
rewardAmount: 0
|
||||
rewardExpBottleKind: 0
|
||||
rewardDushMaterialKind: 0
|
||||
addToTaskPool: 1
|
||||
selectionWeight: 1
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
[CreateAssetMenu(fileName = "NewUserTasksPool", menuName = "DailyTask/UserTasksPool")]
|
||||
public class userTasksPool : ScriptableObject
|
||||
@@ -10,7 +10,6 @@ public class userTasksPool : ScriptableObject
|
||||
[System.Serializable]
|
||||
public class TaskDefinition
|
||||
{
|
||||
|
||||
[Tooltip("Unique identifier for the task")]
|
||||
public string taskID;
|
||||
|
||||
@@ -22,20 +21,28 @@ public class userTasksPool : ScriptableObject
|
||||
public TaskType taskType;
|
||||
|
||||
[Tooltip("How often the task refreshes")]
|
||||
public RefreshFrequency refreshFrequency;
|
||||
public RefreshFrequency refreshFrequency = RefreshFrequency.DailyReset;
|
||||
|
||||
[Tooltip("Target value to complete the task (e.g., 100 combo, 3 songs)")]
|
||||
public float targetValue;
|
||||
[Tooltip("Target value to complete the task")]
|
||||
public float targetValue = 1f;
|
||||
|
||||
[Tooltip("Type of reward given upon completion")]
|
||||
public RewardType rewardType;
|
||||
|
||||
[Tooltip("Quantity of the reward")]
|
||||
public int rewardAmount;
|
||||
public int rewardAmount = 1;
|
||||
|
||||
[Tooltip("是否加入任务池")]
|
||||
[Tooltip("Used when rewardType is expBottle")]
|
||||
public ExpBottleKind rewardExpBottleKind = ExpBottleKind.Common;
|
||||
|
||||
[Tooltip("Used when rewardType is dushMaterial")]
|
||||
public DushMaterialKind rewardDushMaterialKind = DushMaterialKind.Material78021;
|
||||
|
||||
[Tooltip("Whether this task can be included in the random daily task pool")]
|
||||
public bool addToTaskPool = true;
|
||||
|
||||
[Tooltip("Weighted random selection weight")]
|
||||
public int selectionWeight = 1;
|
||||
}
|
||||
|
||||
public enum TaskType
|
||||
@@ -46,21 +53,22 @@ public class userTasksPool : ScriptableObject
|
||||
TotalScore,
|
||||
WatchStory,
|
||||
UseItem,
|
||||
ShareGame
|
||||
ShareGame,
|
||||
SpendCoins,
|
||||
GameDuration
|
||||
}
|
||||
|
||||
public enum RewardType
|
||||
{
|
||||
player_money,
|
||||
player_material,
|
||||
bottleOfEXP,
|
||||
playerEXP
|
||||
coins,
|
||||
expBottle,
|
||||
dushMaterial
|
||||
}
|
||||
|
||||
public enum RefreshFrequency
|
||||
{
|
||||
OnLogin,
|
||||
DailyReset,
|
||||
Never
|
||||
OnLogin,
|
||||
DailyReset,
|
||||
Never
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user