using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityGameFramework.Runtime;
public class SceneEventCollect : MonoBehaviour
{
public enum CollectDropType
{
///
/// 掉落 拾取获得
///
Drop,
///
/// 更改 修改数据
///
Alter,
}
///
/// 采集类型 功能 名称
///
/// [Header("机关组件")]
public string collectName = "";
///
/// 采集类型 功能 描述
///
public string collectDesc = "";
///
/// 采集完成时 tips 描述
///
public string completeTips = "";
///
/// 机关自身 播放动画名称
///
public string collectAnim = "";
///
/// 机关动画是否循环
///
public bool isCollectLoop = false;
[Header("掉落类型")]
public CollectDropType dropType = CollectDropType.Alter;
///
/// 道具ID
///
public int itemDropId;
///
/// 最小数量
///
[Tooltip("DropType为Drop时生效")]
public int mindNumber;
///
/// 最大数量
///
[Tooltip("DropType为Drop时生效")]
public int maxNumber;
///
/// 给予概率
///
[Tooltip("DropType为Drop时生效")]
public float probability = 1;
public float collectTime = 1.0f;
public int dialogIndex = 0;
public void Start()
{
AssemblyHelper.Instance.BindScript("SceneEventCollectLogic", this.gameObject);
}
}