using UnityEditor;
using UnityEngine;
using System.Collections.Generic;
public class PlayAnimation : Editor
{
public float m_CurTime;
private bool m_HasBake;
private bool m_Playing;
private float m_RunningTime;
private double m_PreviousTime;
private double nowTime;
private float stopTime;
private float m_RecorderStopTime;
private type _type=type.forward;
public float kDuration = 0.0f;
private Animation m_Animator;
private GameObject select;
public List<GameObject> childs=new List<GameObject>();
private Animation animation
{
get { return m_Animator ?? (m_Animator = select.GetComponent<Animation>()); }
}
enum type
{
forward,
reverse,
repeat,
stop,
}
void OnEnable()
{
m_PreviousTime = EditorApplication.timeSinceStartup;
EditorApplication.update += inspectorUpdate;
}
void OnDisabl
PlayAnimation
最新推荐文章于 2022-06-15 10:46:49 发布