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

10 лет назад
10 лет назад
10 лет назад
10 лет назад
10 лет назад
10 лет назад
10 лет назад
10 лет назад
10 лет назад
10 лет назад
10 лет назад
12345678910111213141516171819202122232425262728293031323334353637383940
  1. using UnityEngine;
  2. using System.Collections;
  3. public class ActorSampleActions : MeshActor
  4. {
  5. public void Start()
  6. {
  7. Action seq = new ActionRepeat (new ActionSequence(new Action[]
  8. {
  9. new ActionFadeIn(2),
  10. new ActionParallel(new Action[] {
  11. new ActionMoveBy(new Vector3(10, 10, 0), 1),
  12. new ActionRotateBy(new Vector3(90, 90, 0), 1),
  13. new ActionTintBy(new Vector4(-50, 50, -150), 1)
  14. }),
  15. new ActionScaleBy(new Vector3(2, 2, 1), 1),
  16. new ActionScaleBy(new Vector3(0.5F, 0.5F, 2), 1),
  17. new ActionDelay(1),
  18. new ActionBlink(5, 0.1F, 0.4F),
  19. new ActionDelay(1),
  20. new ActionSkewBy(Vector3.zero, new Vector3(0, 30, 0), 1),
  21. new ActionDelay(1),
  22. new ActionJumpBy(new Vector3(-10, 0, 0), 1, 4, 1),
  23. new ActionSkewBy(Vector3.zero, new Vector3(30, 0, 30), 1),
  24. new ActionJumpTo(new Vector3(10, 10, 10), 1, 3, 1),
  25. new ActionRotateBy(new Vector3(90, 0, 0), 1),
  26. new ActionSkewBy(Vector3.zero, new Vector3(-30, 0, -30), 1),
  27. new ActionJumpBy(new Vector3(-10, 0, 0), 1, 2, 1),
  28. new ActionSkewBy(Vector3.zero, new Vector3(0, -30, 0), 1),
  29. new ActionDelay(0.5F),
  30. new ActionBezierRel(new Vector2 (5, 0), new Vector2(5, -10), new Vector2 (0, -10), 2),
  31. new ActionScaleTo(new Vector3(2, 2, 2), 1),
  32. new ActionRotateTo(new Vector3(0, 0, 0), 1),
  33. new ActionFadeOut(2),
  34. new ActionSetTint(new Vector4(67, 105, 181))
  35. }), 5);
  36. SetTimeScale(2);
  37. this.AttachAction(seq);
  38. }
  39. }