Tanoda
AnimatorTrigger.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4
5[RequireComponent(typeof(Animator))]
6public class AnimatorTrigger : MonoBehaviour
7{
8 public void Trigger(string trigger)
9 {
10 GetComponent<Animator>().SetTrigger(trigger);
11 }
12}
void Trigger(string trigger)