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

28 řádky
625B

  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace coa4u
  5. {
  6. /// <summary>
  7. /// Fades out the target. The tartet shaders should support transparency in order to use this action.
  8. /// </summary>
  9. class ActionFadeOut : ActionFadeTo
  10. {
  11. public ActionFadeOut(float targetDuration)
  12. : base(0, targetDuration)
  13. {
  14. }
  15. public override ActionInstant Clone()
  16. {
  17. return new ActionFadeOut(duration);
  18. }
  19. public override ActionInstant Reverse()
  20. {
  21. return new ActionFadeIn(duration);
  22. }
  23. }
  24. }