您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
22 行
604 B
22 行
604 B
using UnityEngine.Events;
|
|
using GameplayIngredients.LevelStreaming;
|
|
|
|
namespace GameplayIngredients.Actions
|
|
{
|
|
public class StreamingLevelAction : ActionBase
|
|
{
|
|
public string[] Scenes;
|
|
public string SceneToActivate;
|
|
public LevelStreamingManager.StreamingAction Action = LevelStreamingManager.StreamingAction.Load;
|
|
|
|
public bool ShowUI = false;
|
|
|
|
public UnityEvent OnLoadComplete;
|
|
|
|
public override void Execute()
|
|
{
|
|
LevelStreamingManager.instance.LoadScenes(Action, Scenes, SceneToActivate, ShowUI, OnLoadComplete);
|
|
}
|
|
}
|
|
}
|
|
|