Commit 02877020 authored by redsuncore's avatar redsuncore

Move function Activated

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