浏览代码

renamed InitialState variable

/main
Amel Negra 4 年前
当前提交
b2351dfa
共有 4 个文件被更改,包括 4 次插入4 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/IsTownsfolkIdleSO.cs
  2. 2
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/IsTownsfolkTalkingSO.cs
  3. 2
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/IsTownsfolkWalkingSO.cs
  4. 2
      UOP1_Project/Assets/Scripts/Characters/Townsfolk.cs

2
UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/IsTownsfolkIdleSO.cs


protected override bool Statement()
{
if (_townsfolkScript.townsfolkInitialState == InitialState.Idle)
if (_townsfolkScript.InitialState == InitialState.Idle)
{
// We don't want to consume it because we want the townsfolk to stay idle
return true;

2
UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/IsTownsfolkTalkingSO.cs


protected override bool Statement()
{
if (_townsfolkScript.townsfolkInitialState == InitialState.Talk)
if (_townsfolkScript.InitialState == InitialState.Talk)
{
return true;
}

2
UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/IsTownsfolkWalkingSO.cs


protected override bool Statement()
{
if (_townsfolkScript.townsfolkInitialState == InitialState.Walk)
if (_townsfolkScript.InitialState == InitialState.Walk)
{
return true;
}

2
UOP1_Project/Assets/Scripts/Characters/Townsfolk.cs


public class Townsfolk : MonoBehaviour
{
public InitialState townsfolkInitialState; //This is checked by conditions in the StateMachine
public InitialState InitialState; //This is checked by conditions in the StateMachine
void Start()
{

正在加载...
取消
保存