Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly a požadavky na natažení.

26 řádky
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. }