20+ high quality effects
Moderate style suitable for cartoon & Reality
Both suitable for 2D & 3D
Good efficiency to Support Mobile Games
Bravery visual performance afford 3A Games
Dimensions are approximate to reality
Special bonus:Relative craft custom SoundFX
For Unity 5 you need to change “animation” to “GetComponent.()” in Red_animSpeedRandomizer.js line 6 to enable the automatic upgrade to the Unity 5 API.
line 6 is
animation[animation.clip.name].speed = Random.Range(minSpeed, maxSpeed);
change to
GetComponent.(animation.clip.name).speed = Random.Range(minSpeed, maxSpeed);
No, the generic version of GetComponent, GetComponent() does not take an argument. See:
I’m not entirely sure what the intended functionality of the script is, however we can take a leaf from the Animation documentation:
and we end up with something like this in C#:
public class RandomizeAnimationSpeed : MonoBehaviour
{
public float minSpeed = 0.7f;
public float maxSpeed = 1.5f;
private void Start()
{
var animation = GetComponent<Animation>();
// Make all animations play at random speed
foreach (AnimationState state in animation)
{
state.speed = UnityEngine.Random.Range(minSpeed, maxSpeed);
}
}
}