任务系统一半多,商城筛选功能,一些细节和免费包

This commit is contained in:
FloatGaming
2026-03-15 04:27:21 +08:00
parent 416190b23e
commit ec42f2e34b
344 changed files with 32225 additions and 6481 deletions
@@ -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
}
}