您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

26 行
645B

  1. using UnityEngine;
  2. using System.Collections.Generic;
  3. using System.Collections;
  4. namespace coa4u
  5. {
  6. public class State
  7. {
  8. public readonly ActionInstant action;
  9. public readonly Predicate trigger;
  10. public readonly string name;
  11. public State(ActionInstant targetAction, string targetName = "")
  12. {
  13. action = targetAction;
  14. name = targetName;
  15. }
  16. public State(Predicate targetTrigger, ActionInstant targetAction, string targetName = "")
  17. {
  18. trigger = targetTrigger;
  19. action = targetAction;
  20. name = targetName;
  21. }
  22. }
  23. }