65 lines
876 B
C#
65 lines
876 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// 武器类型
|
|
/// </summary>
|
|
public enum WeaponType
|
|
{
|
|
// 双枪
|
|
DoubleGun = 0,
|
|
// 长枪
|
|
LargeGun = 1,
|
|
// 火箭筒
|
|
RocketGun = 2,
|
|
// 霰弹枪
|
|
ShotGun = 3,
|
|
// 榴弹枪
|
|
GrenadeGun = 4,
|
|
// 超级武器
|
|
SuperGun = 5
|
|
}
|
|
|
|
/// <summary>
|
|
/// 手类型
|
|
/// </summary>
|
|
public enum HandType
|
|
{
|
|
Left,
|
|
Right
|
|
}
|
|
|
|
/// <summary>
|
|
/// 手状态
|
|
/// </summary>
|
|
public enum HandState
|
|
{
|
|
/// <summary>
|
|
/// 空手
|
|
/// </summary>
|
|
Empty,
|
|
/// <summary>
|
|
/// 有武器
|
|
/// </summary>
|
|
HaveWeapon
|
|
}
|
|
|
|
public class WeaponInfo
|
|
{
|
|
/// <summary>
|
|
/// 子弹量
|
|
/// </summary>
|
|
public int Num;
|
|
|
|
/// <summary>
|
|
/// 武器类型
|
|
/// </summary>
|
|
public WeaponType Type;
|
|
|
|
WeaponInfo()
|
|
{
|
|
|
|
}
|
|
}
|