Exemple #1
0
 /// <summary>
 /// 만약 속도가 0이 아닐시 애니메이션 재생a
 /// </summary>
 void AnimationExecute()
 {
     if (vspeed != 0 || hspeed != 0)
     {
         sprite_animation.ImageUpdate(sprite_animation.image_speed);
     }
 }
 private void FixedUpdate()
 {
     sprite_animation.ImageUpdate(sprite_animation.image_speed);
 }
 private void FixedUpdate()
 {
     t += 0.02f;
     transform.position += new Vector3(0, Mathf.Sin(t) * 0.08f);
     sprite_animation.ImageUpdate(sprite_animation.image_speed);
 }