Commit 02877020 authored by redsuncore's avatar redsuncore

Move function Activated

이동 가능
parent 38668c35
...@@ -275,6 +275,12 @@ public class CIVGameManager : MonoBehaviour, IView { ...@@ -275,6 +275,12 @@ public class CIVGameManager : MonoBehaviour, IView {
} }
case CivPresenter.Presenter.States.Move: case CivPresenter.Presenter.States.Move:
{ {
CastRay();
if (cellSelected != null)
{
mPresenter.FocusedPoint = pointSelected.Value;
}
mPresenter.CommandApply();
break; break;
} }
...@@ -289,6 +295,7 @@ public class CIVGameManager : MonoBehaviour, IView { ...@@ -289,6 +295,7 @@ public class CIVGameManager : MonoBehaviour, IView {
case CivPresenter.Presenter.States.SpecialAct: case CivPresenter.Presenter.States.SpecialAct:
{ {
break; break;
} }
...@@ -343,7 +350,7 @@ public class CIVGameManager : MonoBehaviour, IView { ...@@ -343,7 +350,7 @@ public class CIVGameManager : MonoBehaviour, IView {
mPresenter.CommandRefocus(); mPresenter.CommandRefocus();
Debug.Log("refocus request"); Debug.Log("refocus request");
} }
if(Input.GetKey(KeyCode.S)) if(Input.GetKey(KeyCode.S))
mPresenter.CommandSelect(); mPresenter.CommandSelect();
if (Input.GetKey(KeyCode.D)) if (Input.GetKey(KeyCode.D))
......
...@@ -18,6 +18,8 @@ public class CameraUIController : MonoBehaviour { ...@@ -18,6 +18,8 @@ public class CameraUIController : MonoBehaviour {
public Button WaitButton; public Button WaitButton;
public GameObject UnitInfo; public GameObject UnitInfo;
public GameObject Actions;
public GameObject TurnEnd;
public Image Portrait; public Image Portrait;
public Text UnitName; public Text UnitName;
...@@ -40,9 +42,10 @@ public class CameraUIController : MonoBehaviour { ...@@ -40,9 +42,10 @@ public class CameraUIController : MonoBehaviour {
public void SkillButtonMethod() public void SkillButtonMethod()
{ {
Debug.Log("SkillButton"); Debug.Log("SkillButton");
Debug.Log(mPresenter.SelectedActor.GetType());
if (mPresenter.SelectedActor.GetType() == typeof(Pioneer)) if (mPresenter.SelectedActor.GetType() == typeof(Pioneer))
{ {
mPresenter.SelectedActor.SpecialActs[0].Act(mPresenter.SelectedActor.PlacedPoint); mPresenter.CommandNumeric(0);
Debug.Log("Pioneer set City"); Debug.Log("Pioneer set City");
} }
} }
...@@ -60,6 +63,13 @@ public class CameraUIController : MonoBehaviour { ...@@ -60,6 +63,13 @@ public class CameraUIController : MonoBehaviour {
mPresenter.CommandHoldingAttack mPresenter.CommandHoldingAttack
*/ */
} }
public void ActiveCameraUI(bool value)
{
UnitInfo.SetActive(value);
Actions.SetActive(value);
TurnEnd.SetActive(value);
}
// Use this for initialization // Use this for initialization
void Start () void Start ()
{ {
......
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