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