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í.

34 řádky
715B

  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace coa4u
  5. {
  6. /// <summary>
  7. /// This action stops all actions for the current target.
  8. /// </summary>
  9. class ActionStop : ActionInstant
  10. {
  11. public ActionStop()
  12. : base()
  13. {
  14. }
  15. /// <summary>
  16. /// Returns a copy of the action.
  17. /// </summary>
  18. public override ActionInstant clone()
  19. {
  20. return new ActionStop();
  21. }
  22. /// <summary>
  23. /// This method is called at the action start.
  24. /// </summary>
  25. public override void start()
  26. {
  27. base.start();
  28. target.StopAction();
  29. }
  30. }
  31. }