Boss Room 是一款使用 Unity MLAPI 制作的全功能合作多人 RPG。 它旨在作为学习样本,展示类似游戏中经常出现的某些典型游戏模式。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

32 行
927 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BossRoom.Server
{
/// <summary>
/// Base class for all AIStates
/// </summary>
public abstract class AIState
{
/// <summary>
/// Indicates whether this state thinks it can become/continue to be the active state.
/// </summary>
/// <returns></returns>
public abstract bool IsEligible();
/// <summary>
/// Called once each time this state becomes the active state.
/// (This will only happen if IsEligible() has returned true for this state)
/// </summary>
public abstract void Initialize();
/// <summary>
/// Called once per frame while this is the active state. Initialize() will have
/// already been called prior to Update() being called
/// </summary>
public abstract void Update();
}
}