refactor(scene-mgmt): 移除外景专用时间轴命令并统一调用
Made-with: Cursor
This commit is contained in:
@@ -267,7 +267,7 @@ position: 250,200
|
||||
<<change_actor_state "Watch" "诊室外英理">>
|
||||
<<fade_out>>
|
||||
<<wait 2>>
|
||||
<<outside_play_timeline>>
|
||||
<<play_timeline 医生下地铁>>
|
||||
<<wait 1>>
|
||||
yl: 看来我们的医生<waitfor=0.2>不知道自己应该什么时间到岗。 #line:0f1db57
|
||||
<<init_actor 诊室外医生 诊室外电线杆>>
|
||||
|
||||
@@ -1,38 +1,15 @@
|
||||
using AibisDream.Kit;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Playables;
|
||||
using System.Collections;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
public class OutsideCenter : Singleton<OutsideCenter>
|
||||
{
|
||||
public BubbleSlotGroup bubbleSlotGroup;
|
||||
public PlayableDirector director;
|
||||
|
||||
public override void OnSingletonInit()
|
||||
{
|
||||
// 加载气泡
|
||||
DialogUIManager.Instance.LoadBubbles(bubbleSlotGroup.CollectData());
|
||||
}
|
||||
|
||||
public void PlayTimeline(string timelinePath)
|
||||
{
|
||||
StartCoroutine(PlayTimelineCoroutine());
|
||||
}
|
||||
|
||||
public void PlayTimelineAsync(string timelinePath)
|
||||
{
|
||||
director.Play();
|
||||
}
|
||||
|
||||
public IEnumerator PlayTimelineCoroutine()
|
||||
{
|
||||
director.Play();
|
||||
while (director.state == PlayState.Playing)
|
||||
{
|
||||
yield return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
using System.Collections;
|
||||
using Yarn.Unity;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
public static class OutsideYarnCommand
|
||||
{
|
||||
[YarnCommand("outside_play_timeline")]
|
||||
public static IEnumerator PlayTimeline()
|
||||
{
|
||||
yield return OutsideCenter.Instance.PlayTimelineCoroutine();
|
||||
}
|
||||
|
||||
[YarnCommand("outside_play_timeline_nowait")]
|
||||
public static void PlayTimelineAsync(string timelinePath)
|
||||
{
|
||||
OutsideCenter.Instance.PlayTimelineAsync(timelinePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c92bc3944d75174b8894851d86f50c5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user