forked from zxl/LaboratoryProtection
32 lines
732 B
C#
32 lines
732 B
C#
|
using PMaker.Await;
|
|||
|
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
using UnityEngine;
|
|||
|
using UnityEngine.Playables;
|
|||
|
|
|||
|
namespace PMaker.Example.Timeline
|
|||
|
{
|
|||
|
public class TimelineTest : MonoBehaviour
|
|||
|
{
|
|||
|
public AwaitTimeline awaitTimeline;
|
|||
|
async void Start()
|
|||
|
{
|
|||
|
await awaitTimeline.WaitStep();
|
|||
|
Debug.Log(123);
|
|||
|
await awaitTimeline.WaitStep();
|
|||
|
Debug.Log(1234);
|
|||
|
await awaitTimeline.WaitStep();
|
|||
|
Debug.Log(1234);
|
|||
|
await awaitTimeline.WaitStep();
|
|||
|
Debug.Log(1234);
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
void Update()
|
|||
|
{
|
|||
|
Debug.Log(awaitTimeline.GetComponent<PlayableDirector>().state);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|