25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
Bu depo arşivlendi. Dosyaları görüntüleyebilir ve klonlayabilirsiniz ama işlem gönderemez ve konu/değişiklik isteği açamazsınız.

43 satır
993B

  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace coa4u
  5. {
  6. /// <summary>
  7. /// Instantly shows the hidden target. This action does not require the transparency support in shaders.
  8. /// </summary>
  9. class ActionShow : ActionInstant
  10. {
  11. public ActionShow()
  12. : base()
  13. {
  14. }
  15. /// <summary>
  16. /// Returns a copy of the action.
  17. /// </summary>
  18. public override ActionInstant clone()
  19. {
  20. return new ActionShow();
  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 ActionHide();
  28. }
  29. /// <summary>
  30. /// This method is called at the action start.
  31. /// </summary>
  32. public override void start()
  33. {
  34. base.start();
  35. renderer.enabled = true;
  36. }
  37. }
  38. }