浏览代码

Update GameStateSO.cs (#438)

Fixed issue causing StackOverflowException when starting a dialogue.
/main
GitHub 4 年前
当前提交
2fdc4efa
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      UOP1_Project/Assets/Scripts/Gameplay/GameStateSO.cs

6
UOP1_Project/Assets/Scripts/Gameplay/GameStateSO.cs


//[CreateAssetMenu(fileName = "GameState", menuName = "Gameplay/GameState", order = 51)]
public class GameStateSO : ScriptableObject
{
private GameState _currentGameState = default;
private GameState _previousGameState = default;
public GameState CurrentGameState => CurrentGameState;
private GameState _currentGameState = default;
private GameState _previousGameState = default;
public GameState CurrentGameState => _currentGameState;
public void UpdateGameState(GameState newGameState)
{

正在加载...
取消
保存