2d animation unity code example
Example 1: unity 2d movement and animation
OK Dude I had this problem and found a good yt video I hope this helps whoever comes past it and yh here
link: https://www.youtube.com/watch?v=rycsXRO6rpI
Example 2: unity animation 2d c#
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
public Animation anim; void Start()
{
anim = GetComponent<Animation>();
foreach (AnimationState state in anim)
{
state.speed = 0.5F;
}
}
}