// ***********************************************************************
// Assembly : Unity
// Author : Kimch
// Created : 2020-06-28
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
//
//
// ***********************************************************************
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(id);
}
///
/// 执行
///
public void DoAction()
{
//UI.StoryWindow.ShowStory(this);
GlobalNotifier.PostNotification(GlobalDefine.EVENT_STORY_ACTION, this);
}
///
///
///
public void Complete()
{
if (!stage.group.JumpToNext())
{
//KUIWindow.CloseWindow();
}
}
}
}