unity脚本收集
This commit is contained in:
1 parent
ab57544ef5
commit
d88804cd63
16 files changed
+1325
-1
No files matched your search
@@ -0,0 +1,31 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Playables;
|
||||
|
||||
|
||||
[RequireComponent(typeof(TextMesh))]
|
||||
public class NumberScrollPlayable : MonoBehaviour, INotificationReceiver
|
||||
{
|
||||
public PlayableDirector director;
|
||||
|
||||
public void OnNotify(Playable origin, INotification notification, object context)
|
||||
{
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
if (director != null)
|
||||
{
|
||||
director.Play();
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (director != null && director.state != PlayState.Playing)
|
||||
{
|
||||
director.Play();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user