24 lines
816 B
C#
24 lines
816 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace DefaultNamespace.ProcessMode
|
|
{
|
|
public class ActionWithDescription
|
|
{
|
|
public List<GameObject> TargetObjects { get; set; } // 需要点击的目标物体列表
|
|
public Action Action { get; set; } // 与点击关联的动画或反应
|
|
public string Description { get; set; } // 动作描述
|
|
public int CurrentObjectIndex { get; set; } // 当前对象的点击索引
|
|
|
|
public ActionWithDescription(List<GameObject> targetObjects, Action action, string description)
|
|
{
|
|
TargetObjects = targetObjects ?? new List<GameObject>();
|
|
Action = action;
|
|
Description = description;
|
|
CurrentObjectIndex = 0; // 初始化为第一个对象
|
|
}
|
|
}
|
|
|
|
|
|
} |