| 123456789101112131415161718192021 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class StudentAnimator : MonoBehaviour
- {
- public GameObject cameraSet;
- public Animator animator;
- private void OnEnable()
- {
- cameraSet.transform.localPosition = new Vector3(0, 1.2f, 6);
- cameraSet.transform.localEulerAngles = new Vector3(0, 180, 0);
- animator.SetBool("IsPlay", true);
- }
- private void OnDisable()
- {
- cameraSet.transform.localPosition = new Vector3(0, 1.2f, 0);
- cameraSet.transform.localEulerAngles = new Vector3(0, 0, 0);
- animator.SetBool("IsPlay", true);
- }
- }
|