113 lines
2.2 KiB
C#
113 lines
2.2 KiB
C#
// ***********************************************************************
|
|
// Assembly : Unity
|
|
// Author : Kimch
|
|
// Created : 2018-2-29
|
|
// Description : Boss信息
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "BossInfo" company=""></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
using UnityEngine;
|
|
|
|
namespace G
|
|
{
|
|
public class BossInfo : MonoBehaviour
|
|
{
|
|
[System.Serializable]
|
|
public struct SkillInfo
|
|
{
|
|
#if UNITY_EDITOR
|
|
[Tooltip("子弹")]
|
|
#endif
|
|
public GameObject skill;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("预警")]
|
|
#endif
|
|
public GameObject warning;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("使用目标位置")]
|
|
#endif
|
|
public bool useTargetPosition;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("伤害百分比")]
|
|
#endif
|
|
public float damagePercent;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("攻击范围")]
|
|
#endif
|
|
public float range;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("冲刺")]
|
|
#endif
|
|
public float dash;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("移动时间")]
|
|
#endif
|
|
public float movingTime;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("移动速度")]
|
|
#endif
|
|
public float movingSpeed;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("冷却")]
|
|
#endif
|
|
public float cd;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("关闭盒子")]
|
|
#endif
|
|
public bool offCollider;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("附加 0独立1,2")]
|
|
#endif
|
|
public int attach;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool instance;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool usePrefabData;
|
|
}
|
|
|
|
#if UNITY_EDITOR
|
|
[Tooltip("体型")]
|
|
#endif
|
|
public int kind;
|
|
|
|
public SkillInfo[] skillInfos;
|
|
|
|
#if UNITY_EDITOR
|
|
[Tooltip("武器")]
|
|
#endif
|
|
public Transform weapon;
|
|
#if UNITY_EDITOR
|
|
[Tooltip("武器伤害")]
|
|
#endif
|
|
public Transform weapon_ef;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public AudioClip snd_move;
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public AudioClip snd_attack;
|
|
/// <summary>
|
|
/// 大叫
|
|
/// </summary>
|
|
public AudioClip snd_scream;
|
|
/// <summary>
|
|
/// 指示
|
|
/// </summary>
|
|
public Transform direction_arrow;
|
|
|
|
private void Reset()
|
|
{
|
|
}
|
|
}
|
|
}
|