58 lines
1.3 KiB
C#
58 lines
1.3 KiB
C#
// ***********************************************************************
|
|
// Assembly : Unity
|
|
// Author : Kimch
|
|
// Created : 2020-06-28
|
|
// Description :
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "StoryAction" company="Kunpo"></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
namespace G
|
|
{
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class StoryAction
|
|
{
|
|
private StoryStage _storyStage;
|
|
|
|
public StoryStage stage => _storyStage;
|
|
|
|
public ItemStoryAction item
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
public int type => item.type;
|
|
|
|
public StoryAction(StoryStage stage, int id)
|
|
{
|
|
_storyStage = stage;
|
|
this.item = ItemProxy.Instance.GetStaticItem<ItemStoryAction>(id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 执行
|
|
/// </summary>
|
|
public void DoAction()
|
|
{
|
|
//UI.StoryWindow.ShowStory(this);
|
|
GlobalNotifier.PostNotification(GlobalDefine.EVENT_STORY_ACTION, this);
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public void Complete()
|
|
{
|
|
if (!stage.group.JumpToNext())
|
|
{
|
|
//KUIWindow.CloseWindow<UI.StoryWindow>();
|
|
}
|
|
}
|
|
}
|
|
} |