using System; using System.Collections.Generic; using UnityEngine; namespace DefaultNamespace.ProcessMode { /// /// 表示一个流程步骤的类 /// public class AnimationStep { public string Description { get; set; } // 步骤描述 public float Score { get; set; } // 步骤评分 public Action Animation { get; private set; } // DOTween动画 public GameObject CorrectObject { get; set; } // 正确的点击对象 /// /// 构造函数 /// /// 步骤描述 /// 步骤评分 /// 要播放的动画 /// 正确的点击对象 public AnimationStep(string description, float score, Action animation, GameObject correctObject) { Description = description; Score = score; Animation = animation; CorrectObject = correctObject; } /// /// 播放动画 /// public void PlayAnimation() { Animation?.Invoke(); } } }