Wolf.cs 376 B

1234567891011121314151617181920
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class Wolf : MonoBehaviour
  5. {
  6. AnimationPlayer animationPlayer;
  7. void Start()
  8. {
  9. animationPlayer = this.GetComponent<AnimationPlayer>();
  10. animationPlayer.play(0, WrapMode.Loop);
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. }
  16. }