浏览代码

Adding LifeState enum

LifeState represents if the chacater is Alive, Dead or Fainted.
/main
sorcerer_king 3 年前
当前提交
196ebfa8
共有 1 个文件被更改,包括 9 次插入3 次删除
  1. 12
      Assets/BossRoom/Scripts/Shared/NetworkCharacterState.cs

12
Assets/BossRoom/Scripts/Shared/NetworkCharacterState.cs


namespace BossRoom
{
public enum LifeState
{
ALIVE,
FAINTED,
DEAD
}
/// <summary>
/// Contains all NetworkedVars and RPCs of a character. This component is present on both client and server objects.

public NetworkedVarFloat NetworkMovementSpeed { get; } = new NetworkedVarFloat();
public NetworkedVarInt HitPoints;
public NetworkedVarInt Mana;
public NetworkedVarInt Mana;
public NetworkedVar<LifeState> NetworkLifeState { get; } = new NetworkedVar<LifeState>(LifeState.ALIVE);
/// <summary>
/// Gets invoked when inputs are received from the client which own this networked character.
/// </summary>

正在加载...
取消
保存