Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
Це архівний репозитарій. Ви можете переглядати і клонувати файли, але не можете робити пуш або відкривати питання/запити.

34 рядки
823B

  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace coa4u
  5. {
  6. /// <summary>
  7. /// Fades in the target. The tartet shaders should support transparency in order to use this action.
  8. /// </summary>
  9. class ActionFadeIn : ActionFadeTo
  10. {
  11. public ActionFadeIn(float tgtDuration)
  12. : base(1, tgtDuration)
  13. {
  14. }
  15. /// <summary>
  16. /// Returns a copy of the action.
  17. /// </summary>
  18. public override ActionInstant clone()
  19. {
  20. return new ActionFadeIn(duration);
  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 ActionFadeOut(duration);
  28. }
  29. }
  30. }