Commit e10f8e1f authored by 16도재형's avatar 16도재형

Minor fix: variable name changed

parent 61a58c6a
...@@ -35,7 +35,7 @@ public class GameManager : MonoBehaviour { ...@@ -35,7 +35,7 @@ public class GameManager : MonoBehaviour {
private CivModel.Unit _selectedActor = null; private CivModel.Unit _selectedActor = null;
// Variables from Presenter.cs // Variables from Presenter.cs
public bool IsThereTodos; public bool isThereTodos;
private CivModel.Unit[] _standbyUnits; private CivModel.Unit[] _standbyUnits;
private int _standbyUnitIndex = -1; private int _standbyUnitIndex = -1;
...@@ -199,7 +199,7 @@ public class GameManager : MonoBehaviour { ...@@ -199,7 +199,7 @@ public class GameManager : MonoBehaviour {
{ {
_standbyUnitIndex = idx; _standbyUnitIndex = idx;
_selectedActor = _standbyUnits[idx]; _selectedActor = _standbyUnits[idx];
IsThereTodos = true; isThereTodos = true;
Debug.Log(_selectedActor.PlacedPoint); Debug.Log(_selectedActor.PlacedPoint);
Focus(); Focus();
return; return;
...@@ -208,7 +208,7 @@ public class GameManager : MonoBehaviour { ...@@ -208,7 +208,7 @@ public class GameManager : MonoBehaviour {
_selectedActor = null; _selectedActor = null;
_standbyUnitIndex = -1; _standbyUnitIndex = -1;
IsThereTodos = false; isThereTodos = false;
} }
} }
void SelectUnit(Unit unit) void SelectUnit(Unit unit)
...@@ -225,7 +225,7 @@ public class GameManager : MonoBehaviour { ...@@ -225,7 +225,7 @@ public class GameManager : MonoBehaviour {
_standbyUnits = units; _standbyUnits = units;
_standbyUnitIndex = idx; _standbyUnitIndex = idx;
IsThereTodos = true; isThereTodos = true;
Focus(); Focus();
} }
......
...@@ -30,7 +30,7 @@ public class UIManager : MonoBehaviour { ...@@ -30,7 +30,7 @@ public class UIManager : MonoBehaviour {
void Update() void Update()
{ {
if (GameManager.I.IsThereTodos) if (GameManager.I.isThereTodos)
{ {
MapUI.transform.Find("EndTurn").GetComponentInChildren<Text>().text = "유닛이 명령을 기다리고 있습니다"; MapUI.transform.Find("EndTurn").GetComponentInChildren<Text>().text = "유닛이 명령을 기다리고 있습니다";
} }
...@@ -140,7 +140,7 @@ public class UIManager : MonoBehaviour { ...@@ -140,7 +140,7 @@ public class UIManager : MonoBehaviour {
public void EndTurnActive() public void EndTurnActive()
{ {
SkillSet.SetActive(false); SkillSet.SetActive(false);
if (GameManager.I.IsThereTodos) if (GameManager.I.isThereTodos)
{ {
GameManager.I.SelectNextUnit(); GameManager.I.SelectNextUnit();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment