CreateUIEffect.cs 405 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. namespace Model
  3. {
  4. [Node(NodeClassifyType.Action, "创建UI特效")]
  5. public class CreateUIEffect : Node
  6. {
  7. [NodeField("特效")]
  8. private GameObject effect;
  9. public CreateUIEffect(NodeProto nodeProto): base(nodeProto)
  10. {
  11. }
  12. protected override bool Run(BehaviorTree behaviorTree, BTEnv env)
  13. {
  14. Log.Debug($"创建UI特效: {this.effect.name}");
  15. return true;
  16. }
  17. }
  18. }