Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Este repositório está arquivado. Você pode visualizar os arquivos e realizar clone, mas não poderá realizar push nem abrir issues e pull requests.

40 linhas
865B

  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace coa4u
  5. {
  6. /// <summary>
  7. /// Prints a message in Unity debug console.
  8. /// </summary>
  9. [System.Serializable]
  10. class ActionLog : ActionInstant
  11. {
  12. public string message;
  13. public ActionLog(string targetMessage)
  14. : base()
  15. {
  16. message = targetMessage;
  17. }
  18. public override ActionInstant Clone()
  19. {
  20. return new ActionLog(message);
  21. }
  22. /// <summary>
  23. /// Returns the reversed version of the action, if it is possible.
  24. /// </summary>
  25. public override ActionInstant Reverse()
  26. {
  27. return new ActionLog(message);
  28. }
  29. public override void Start()
  30. {
  31. base.Start();
  32. Debug.Log(message);
  33. }
  34. }
  35. }