AnimationPlayer_Example2.cs 362 B

123456789101112131415161718
  1. using ChivaXR;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class AnimationPlayer_Example2 : MonoBehaviour
  6. {
  7. public bool awake = true;
  8. public string AnimationName;
  9. private void Awake()
  10. {
  11. if (awake)
  12. {
  13. AnimationManager.Instance.PlayAniData(AnimationName);
  14. }
  15. }
  16. }