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.

34 satır
769B

  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace coa4u
  5. {
  6. /// <summary>
  7. /// Instantly hides the target or showes it, if it's hidden. This action does not require the transparency support in shaders.
  8. /// </summary>
  9. class ActionToggleVisibility : ActionInstant
  10. {
  11. public ActionToggleVisibility()
  12. : base()
  13. {
  14. }
  15. public override ActionInstant Clone()
  16. {
  17. return new ActionToggleVisibility();
  18. }
  19. public override ActionInstant Reverse()
  20. {
  21. return new ActionToggleVisibility();
  22. }
  23. public override void Start()
  24. {
  25. base.Start();
  26. renderer.enabled = !renderer.enabled;
  27. }
  28. }
  29. }