CreateUIEffect.cs 489 B

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