You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

26 lines
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. }