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.

34 lines
686B

  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. public override ActionInstant Clone()
  16. {
  17. return new ActionShow();
  18. }
  19. public override ActionInstant Reverse()
  20. {
  21. return new ActionHide();
  22. }
  23. public override void Start()
  24. {
  25. base.Start();
  26. renderer.enabled = true;
  27. }
  28. }
  29. }