惊醒
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Playables;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
public class DeepInPlayableBehaviour : PlayableBehaviour
|
||||
{
|
||||
public GameObject targetObject;
|
||||
public Sprite[] sprites;
|
||||
public float singleDuration;
|
||||
|
||||
#region 一些索引
|
||||
|
||||
private SpriteRenderer _renderer1;
|
||||
private SpriteRenderer _renderer2;
|
||||
private int _index;
|
||||
private float _progress;
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 循环开始
|
||||
/// </summary>
|
||||
/// <param name="playable"></param>
|
||||
/// <param name="info"></param>
|
||||
public override void OnBehaviourPlay(Playable playable, FrameData info)
|
||||
{
|
||||
_renderer2 = targetObject.transform.Find("Renderer1").GetComponent<SpriteRenderer>();
|
||||
}
|
||||
|
||||
public override void ProcessFrame(Playable playable, FrameData info, object playerData)
|
||||
{
|
||||
if (targetObject != null)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnBehaviourPause(Playable playable, FrameData info)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user