using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Gameplay.FirstTimeFlow
{
///
/// 强制流程步骤基类
///
public abstract class FirstTimeFlowStep
{
}
///
/// 播放PV
///
public sealed class PlayVideoStep : FirstTimeFlowStep
{
///
/// 创建播放PV步骤
///
/// 视频路径
///
public static PlayVideoStep Create(string videoPath)
{
return new PlayVideoStep(videoPath);
}
///
/// 视频路径
///
private string videoPath;
private PlayVideoStep()
{
}
private PlayVideoStep(string path)
{
videoPath = path;
}
public async void Run()
{
await UI_PVAnimaPlayController.Open(videoPath);
}
}
///
/// 进入剧情关卡
///
public sealed class EnterStoryLevelStep : FirstTimeFlowStep
{
///
/// 创建进入剧情关卡步骤
///
/// 视频路径
///
public static EnterStoryLevelStep Create(int levelId)
{
return new EnterStoryLevelStep(levelId);
}
///
/// 关卡id
///
private int levelId;
private EnterStoryLevelStep()
{
}
private EnterStoryLevelStep(int id)
{
levelId = id;
}
}
///
/// 进入战斗关卡
///
public sealed class EnterFightLevelStep : FirstTimeFlowStep
{
///
/// 创建进入战斗关卡步骤
///
/// 视频路径
///
public static EnterFightLevelStep Create(int levelId)
{
return new EnterFightLevelStep(levelId);
}
///
/// 关卡id
///
private int levelId;
private EnterFightLevelStep()
{
}
private EnterFightLevelStep(int id)
{
levelId = id;
}
}
///
/// 编队
///
public sealed class EditTeamStep : FirstTimeFlowStep
{
///
/// 创建进入战斗关卡步骤
///
/// 视频路径
///
public static EditTeamStep Create(int levelId)
{
return new EditTeamStep(levelId);
}
///
/// 关卡id
///
private int levelId;
private EditTeamStep()
{
}
private EditTeamStep(int id)
{
levelId = id;
}
}
}