| 123456789101112131415161718192021 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class AnimationTrigger : MonoBehaviour
- {
- Animator ani;
- private void Awake()
- {
- ani = GetComponent<Animator>();
- }
- public void WhiteToNormal()
- {
- ani.Play("WhiteToNormal", 1, 0);
- }
- public void TurnNormal()
- {
- ani.Play("Normal", 1, 0);
- }
- }
|