using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 动画物体的管理 /// public class AnimationModel : MonoBehaviour { public static AnimationModel instance; public RotationController rotationController; private void Awake() { instance = this; } public GameObject tween_181; public GameObject tween_122; public GameObject raw_122; public GameObject raw_181; public void Show181Tween() { tween_181.SetActive(true); raw_181.SetActive(true); } public void Show122Tween() { tween_122.SetActive(true); raw_122.SetActive(true); } public void Shoot122() { raw_122.SetActive(true); rotationController.GetComponent().Play(); } public void PauseTween() { rotationController.PauseTween(); } }