|
|
@@ -7,16 +7,15 @@ public class SampleActions : MonoBehaviour |
|
|
|
{ |
|
|
|
Action seq = new ActionRepeat (new ActionSequence(new Action[] |
|
|
|
{ |
|
|
|
new ActionFadeIn(2), |
|
|
|
new ActionParallel(new Action[] { |
|
|
|
new ActionMoveBy(new Vector3(10, 0, 0), 1), |
|
|
|
new ActionMoveBy(new Vector3(0, 10, 0), 1), |
|
|
|
new ActionRotateBy(new Vector3(90, 0, 0), 1), |
|
|
|
new ActionTintBy(new Vector4(-50, 50, -150, 0), 1) |
|
|
|
new ActionTintBy(new Vector4(-50, 50, -150), 1) |
|
|
|
}), |
|
|
|
new ActionScaleBy(new Vector3(2, 2, 1), 1), |
|
|
|
new ActionScaleBy(new Vector3(0.5F, 0.5F, 2), 1), |
|
|
|
new ActionFadeBy(-1F, 2), |
|
|
|
new ActionFadeBy(1F, 2), |
|
|
|
new ActionDelay(1), |
|
|
|
new ActionRepeat(new ActionSequence(new Action[] { |
|
|
|
new ActionHide(), |
|
|
@@ -30,7 +29,8 @@ public class SampleActions : MonoBehaviour |
|
|
|
new ActionMoveTo(new Vector3(0, 0, 10), 1), |
|
|
|
new ActionScaleTo(new Vector3(2, 2, 2), 1), |
|
|
|
new ActionRotateTo(new Vector3(0, 0, 0), 1), |
|
|
|
new ActionTintTo(new Vector4(67, 105, 181, 255),3) |
|
|
|
new ActionFadeOut(2), |
|
|
|
new ActionSetTint(new Vector4(67, 105, 181)) |
|
|
|
}), 5); |
|
|
|
gameObject.SendMessage("AttachAction", seq); |
|
|
|
} |
|
|
|