51 lines
915 B
C#
51 lines
915 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// ¶¯»ÎïÌåµÄ¹ÜÀí
|
|
/// </summary>
|
|
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<Animation>().Play();
|
|
}
|
|
|
|
public void PauseTween()
|
|
{
|
|
rotationController.PauseTween();
|
|
}
|
|
}
|