AnimatorPlayer.cs 382 B

123456789101112131415161718
  1. using System;
  2. using UnityEngine;
  3. public class AnimatorPlayer : MonoBehaviour
  4. {
  5. private void Awake()
  6. {
  7. this.m_anim = base.GetComponent<Animator>();
  8. NDebug.Assert(this.m_anim != null, "Animator が付いていません。\n" + base.gameObject.name);
  9. }
  10. public void SetTrigger(string f_strTrigger)
  11. {
  12. this.m_anim.SetTrigger(f_strTrigger);
  13. }
  14. private Animator m_anim;
  15. }