//// 배틀 시작후 초기화를 시켜준다. //public void Initilize_Battle() //{ // int FairChecker = Random.Range(0, 2); // if (FairChecker == 0) // { // NowGameTurnState = GameOption.InGameTurn.Player; // } // else // { // NowGameTurnState = GameOption.InGameTurn.Enemy; // } //} //// 현재 누구의 턴인지 알려준다. //public GameOption.InGameTurn GetNowGameTurn() //{ // return NowGameTurnState; //} #endregion public void Initilize_GameManager() { ControllOption = GameOption.GameControllOption.KEYBOARD; DifficultOption = GameOption.GameDifficultOption.Normal; Field_event = GameOption.Field_Event.None; //NowGameTurnState = GameOption.InGameTurn.Player; }
// Use this for initialization void Start() { NowPrintTextNumber = 0; CanvasChecker = false; if (NPC_Communication_UI_Prefab != null) { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Set_Character_Community_Illust(NPC_Illusts); NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Set_Character_Community_NameTag(NPC_Name); for (int i = 0; i < NPC_Texts.Count - 1; i++) { //NPC_Communication_UI_Prefab.GetComponent<Communication_Field_UI>().Set_Character_Community_Text(NPC_Texts[i].ToString()); NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Set_Character_Community_Text(NPC_Texts); } NPC_Communication_UI_Prefab.gameObject.SetActive(false); } if (Communication_UI_Canvas == null) { Communication_UI_Canvas = GameObject.Find("Field_UI_Canvas"); } if (NowPrintIllustIndexNumber == null) { if (NPC_Texts != null) { NowPrintIllustIndexNumber = new List <int>(NPC_Texts.Count); } else { NowPrintIllustIndexNumber = new List <int>(1); NowPrintIllustIndexNumber[0] = 0; } } NowFieldEvent = GameManager.GetInstance.GetNowFieldGameEvent(); NowControlOption = GameManager.GetInstance.GetNowControllOption(); }
//[SpineAnimation(dataField: "skeletonAnimation")] //public string jumpName = "Jump"; //[SpineAnimation(dataField: "skeletonAnimation")] //public string fallName = "Fall"; //[SpineAnimation(dataField: "skeletonAnimation")] //public string crouchName = "Crouch"; // Use this for initialization void Start() { MySpeed = 0.1f; if (PlayerAni == null) { PlayerAni = GetComponent <SkeletonAnimation>(); PlayerAni.AnimationState.Event += HandleEvent; } else { PlayerAni.AnimationState.Event += HandleEvent; } //if(controller == null) //{ // controller = GetComponent<CharacterController>(); //} NowControllOption = GameManager.GetInstance.GetNowControllOption(); NowDifficultOption = GameManager.GetInstance.GetNowDifficultOption(); NowFieldEvent = GameManager.GetInstance.GetNowFieldGameEvent(); }
public void SetNowFieldGameEvent(GameOption.Field_Event Event) { Field_event = Event; }
// Update is called once per frame void Update() { NowControllOption = GameManager.GetInstance.GetNowControllOption(); NowDifficultOption = GameManager.GetInstance.GetNowDifficultOption(); NowFieldEvent = GameManager.GetInstance.GetNowFieldGameEvent(); switch (NowFieldEvent) { // 필드에서 돌아 다닐때.. case GameOption.Field_Event.None: { #region Input 이벤트 switch (NowControllOption) { #region 키보드(Keyboard) 입력 // 키보드 입력시 처리될 입력들.. case GameOption.GameControllOption.KEYBOARD: { if (Input.GetKey(KeyCode.LeftArrow)) { PlayerAni.AnimationName = Spine_Ani_runName; PlayerAni.skeleton.flipX = true; if (Input.GetKey(KeyCode.UpArrow)) { transform.Translate(new Vector2(-MySpeed, MySpeed)); MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, MySpeed)); } else if (Input.GetKey(KeyCode.DownArrow)) { transform.Translate(new Vector2(-MySpeed, -MySpeed)); MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, -MySpeed)); } else { transform.Translate(new Vector2(-MySpeed, 0.0f)); MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, 0.0f)); } } else if (Input.GetKey(KeyCode.RightArrow)) { PlayerAni.AnimationName = Spine_Ani_runName; PlayerAni.skeleton.flipX = false; if (Input.GetKey(KeyCode.UpArrow)) { transform.Translate(new Vector2(MySpeed, MySpeed)); MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, MySpeed)); } else if (Input.GetKey(KeyCode.DownArrow)) { transform.Translate(new Vector2(MySpeed, -MySpeed)); MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, -MySpeed)); } else { transform.Translate(new Vector2(MySpeed, 0.0f)); MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, 0.0f)); } } else if (Input.GetKey(KeyCode.UpArrow)) { PlayerAni.AnimationName = Spine_Ani_runName; if (Input.GetKey(KeyCode.LeftArrow)) { transform.Translate(new Vector2(-MySpeed, MySpeed)); MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, MySpeed)); } else if (Input.GetKey(KeyCode.RightArrow)) { transform.Translate(new Vector2(MySpeed, MySpeed)); MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, MySpeed)); } else { transform.Translate(new Vector2(0.0f, MySpeed)); MainField_Character_Camera.transform.Translate(new Vector2(0.0f, MySpeed)); } } else if (Input.GetKey(KeyCode.DownArrow)) { PlayerAni.AnimationName = Spine_Ani_runName; if (Input.GetKey(KeyCode.LeftArrow)) { transform.Translate(new Vector2(-MySpeed, -MySpeed)); MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, -MySpeed)); } else if (Input.GetKey(KeyCode.RightArrow)) { transform.Translate(new Vector2(MySpeed, -MySpeed)); MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, -MySpeed)); } else { transform.Translate(new Vector2(0.0f, -MySpeed)); MainField_Character_Camera.transform.Translate(new Vector2(0.0f, -MySpeed)); } } else { PlayerAni.AnimationName = Spine_Ani_idleName; } //if (Input.GetKeyDown(KeyCode.Space)) //{ // AutoFade.LoadLevel("BattleScene", 0.2f, 0.2f, Color.black); //} } break; #endregion #region 게임패드(Xbox360) 입력 // 게임패드 사용시 적용될 옵션 // Xbox360 패드를 기준으로 설정 되어 있다. case GameOption.GameControllOption.GAMEPAD: { if (Input.GetButtonDown("P1_360_AButton")) { Debug.Log("A Button!"); } if (Input.GetButtonDown("P1_360_BButton")) { Debug.Log("B Button!"); } if (Input.GetButtonDown("P1_360_XButton")) { Debug.Log("X Button!"); } if (Input.GetButtonDown("P1_360_YButton")) { Debug.Log("Y Button!"); } if (Input.GetButtonDown("P1_360_LeftBumper")) { Debug.Log("Left Bumper!"); } if (Input.GetButtonDown("P1_360_RightBumper")) { Debug.Log("Right Bumper!"); } if (Input.GetButtonDown("P1_360_BackButton")) { Debug.Log("Back Button!"); } if (Input.GetButtonDown("P1_360_StartButton")) { Debug.Log("Start Button!"); } if (Input.GetButtonDown("P1_360_LeftThumbStickButton")) { Debug.Log("Left Thumbstick Button!"); } if (Input.GetButtonDown("P1_360_RightThumbStickButton")) { Debug.Log("Right Thumbstick Button!"); } if (Input.GetAxis("P1_360_Triggers") > 0.001) { Debug.Log("Right Trigger!"); } if (Input.GetAxis("P1_360_Triggers") < 0) { Debug.Log("Left Trigger!"); } if (Input.GetAxis("P1_360_HorizontalDPAD") > 0.001) { Debug.Log("Right D-PAD Button!"); } if (Input.GetAxis("P1_360_HorizontalDPAD") < 0) { Debug.Log("Left D-PAD Button!"); } if (Input.GetAxis("P1_360_VerticalDPAD") > 0.001) { Debug.Log("Up D-PAD Button!"); } if (Input.GetAxis("P1_360_VerticalDPAD") < 0) { Debug.Log("Down D-PAD Button!"); } } break; #endregion } #endregion } break; // 필드에서 NPC와 대화할때.. case GameOption.Field_Event.Text_Event: { #region Input 이벤트 switch (NowControllOption) { #region 키보드(Keyboard) 입력 // 키보드 입력시 처리될 입력들.. case GameOption.GameControllOption.KEYBOARD: { PlayerAni.AnimationName = Spine_Ani_idleName; //if (Input.GetKey(KeyCode.LeftArrow)) //{ // PlayerAni.AnimationName = Spine_Ani_runName; // PlayerAni.skeleton.flipX = true; // if (Input.GetKey(KeyCode.UpArrow)) // { // transform.Translate(new Vector2(-MySpeed, MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, MySpeed)); // } // else if (Input.GetKey(KeyCode.DownArrow)) // { // transform.Translate(new Vector2(-MySpeed, -MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, -MySpeed)); // } // else // { // transform.Translate(new Vector2(-MySpeed, 0.0f)); // MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, 0.0f)); // } //} //else if (Input.GetKey(KeyCode.RightArrow)) //{ // PlayerAni.AnimationName = Spine_Ani_runName; // PlayerAni.skeleton.flipX = false; // if (Input.GetKey(KeyCode.UpArrow)) // { // transform.Translate(new Vector2(MySpeed, MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, MySpeed)); // } // else if (Input.GetKey(KeyCode.DownArrow)) // { // transform.Translate(new Vector2(MySpeed, -MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, -MySpeed)); // } // else // { // transform.Translate(new Vector2(MySpeed, 0.0f)); // MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, 0.0f)); // } //} //else if (Input.GetKey(KeyCode.UpArrow)) //{ // PlayerAni.AnimationName = Spine_Ani_runName; // if (Input.GetKey(KeyCode.LeftArrow)) // { // transform.Translate(new Vector2(-MySpeed, MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, MySpeed)); // } // else if (Input.GetKey(KeyCode.RightArrow)) // { // transform.Translate(new Vector2(MySpeed, MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, MySpeed)); // } // else // { // transform.Translate(new Vector2(0.0f, MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(0.0f, MySpeed)); // } //} //else if (Input.GetKey(KeyCode.DownArrow)) //{ // PlayerAni.AnimationName = Spine_Ani_runName; // if (Input.GetKey(KeyCode.LeftArrow)) // { // transform.Translate(new Vector2(-MySpeed, -MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, -MySpeed)); // } // else if (Input.GetKey(KeyCode.RightArrow)) // { // transform.Translate(new Vector2(MySpeed, -MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, -MySpeed)); // } // else // { // transform.Translate(new Vector2(0.0f, -MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(0.0f, -MySpeed)); // } //} //else //{ // PlayerAni.AnimationName = Spine_Ani_idleName; //} } break; #endregion #region 게임패드(Xbox360) 입력 // 게임패드 사용시 적용될 옵션 // Xbox360 패드를 기준으로 설정 되어 있다. case GameOption.GameControllOption.GAMEPAD: { PlayerAni.AnimationName = Spine_Ani_idleName; //if (Input.GetButtonDown("P1_360_AButton")) //{ // Debug.Log("A Button!"); //} //if (Input.GetButtonDown("P1_360_BButton")) //{ // Debug.Log("B Button!"); //} //if (Input.GetButtonDown("P1_360_XButton")) //{ // Debug.Log("X Button!"); //} //if (Input.GetButtonDown("P1_360_YButton")) //{ // Debug.Log("Y Button!"); //} //if (Input.GetButtonDown("P1_360_LeftBumper")) //{ // Debug.Log("Left Bumper!"); //} //if (Input.GetButtonDown("P1_360_RightBumper")) //{ // Debug.Log("Right Bumper!"); //} //if (Input.GetButtonDown("P1_360_BackButton")) //{ // Debug.Log("Back Button!"); //} //if (Input.GetButtonDown("P1_360_StartButton")) //{ // Debug.Log("Start Button!"); //} //if (Input.GetButtonDown("P1_360_LeftThumbStickButton")) //{ // Debug.Log("Left Thumbstick Button!"); //} //if (Input.GetButtonDown("P1_360_RightThumbStickButton")) //{ // Debug.Log("Right Thumbstick Button!"); //} //if (Input.GetAxis("P1_360_Triggers") > 0.001) //{ // Debug.Log("Right Trigger!"); //} //if (Input.GetAxis("P1_360_Triggers") < 0) //{ // Debug.Log("Left Trigger!"); //} //if (Input.GetAxis("P1_360_HorizontalDPAD") > 0.001) //{ // Debug.Log("Right D-PAD Button!"); //} //if (Input.GetAxis("P1_360_HorizontalDPAD") < 0) //{ // Debug.Log("Left D-PAD Button!"); //} //if (Input.GetAxis("P1_360_VerticalDPAD") > 0.001) //{ // Debug.Log("Up D-PAD Button!"); //} //if (Input.GetAxis("P1_360_VerticalDPAD") < 0) //{ // Debug.Log("Down D-PAD Button!"); //} } break; #endregion } #endregion } break; // 필드에서 카메라 이벤트가 일어날때.. case GameOption.Field_Event.Camera_Event: { #region Input 이벤트 switch (NowControllOption) { #region 키보드(Keyboard) 입력 // 키보드 입력시 처리될 입력들.. case GameOption.GameControllOption.KEYBOARD: { PlayerAni.AnimationName = Spine_Ani_idleName; //if (Input.GetKey(KeyCode.LeftArrow)) //{ // PlayerAni.AnimationName = Spine_Ani_runName; // PlayerAni.skeleton.flipX = true; // if (Input.GetKey(KeyCode.UpArrow)) // { // transform.Translate(new Vector2(-MySpeed, MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, MySpeed)); // } // else if (Input.GetKey(KeyCode.DownArrow)) // { // transform.Translate(new Vector2(-MySpeed, -MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, -MySpeed)); // } // else // { // transform.Translate(new Vector2(-MySpeed, 0.0f)); // MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, 0.0f)); // } //} //else if (Input.GetKey(KeyCode.RightArrow)) //{ // PlayerAni.AnimationName = Spine_Ani_runName; // PlayerAni.skeleton.flipX = false; // if (Input.GetKey(KeyCode.UpArrow)) // { // transform.Translate(new Vector2(MySpeed, MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, MySpeed)); // } // else if (Input.GetKey(KeyCode.DownArrow)) // { // transform.Translate(new Vector2(MySpeed, -MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, -MySpeed)); // } // else // { // transform.Translate(new Vector2(MySpeed, 0.0f)); // MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, 0.0f)); // } //} //else if (Input.GetKey(KeyCode.UpArrow)) //{ // PlayerAni.AnimationName = Spine_Ani_runName; // if (Input.GetKey(KeyCode.LeftArrow)) // { // transform.Translate(new Vector2(-MySpeed, MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, MySpeed)); // } // else if (Input.GetKey(KeyCode.RightArrow)) // { // transform.Translate(new Vector2(MySpeed, MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, MySpeed)); // } // else // { // transform.Translate(new Vector2(0.0f, MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(0.0f, MySpeed)); // } //} //else if (Input.GetKey(KeyCode.DownArrow)) //{ // PlayerAni.AnimationName = Spine_Ani_runName; // if (Input.GetKey(KeyCode.LeftArrow)) // { // transform.Translate(new Vector2(-MySpeed, -MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(-MySpeed, -MySpeed)); // } // else if (Input.GetKey(KeyCode.RightArrow)) // { // transform.Translate(new Vector2(MySpeed, -MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(MySpeed, -MySpeed)); // } // else // { // transform.Translate(new Vector2(0.0f, -MySpeed)); // MainField_Character_Camera.transform.Translate(new Vector2(0.0f, -MySpeed)); // } //} //else //{ // PlayerAni.AnimationName = Spine_Ani_idleName; //} } break; #endregion #region 게임패드(Xbox360) 입력 // 게임패드 사용시 적용될 옵션 // Xbox360 패드를 기준으로 설정 되어 있다. case GameOption.GameControllOption.GAMEPAD: { PlayerAni.AnimationName = Spine_Ani_idleName; //if (Input.GetButtonDown("P1_360_AButton")) //{ // Debug.Log("A Button!"); //} //if (Input.GetButtonDown("P1_360_BButton")) //{ // Debug.Log("B Button!"); //} //if (Input.GetButtonDown("P1_360_XButton")) //{ // Debug.Log("X Button!"); //} //if (Input.GetButtonDown("P1_360_YButton")) //{ // Debug.Log("Y Button!"); //} //if (Input.GetButtonDown("P1_360_LeftBumper")) //{ // Debug.Log("Left Bumper!"); //} //if (Input.GetButtonDown("P1_360_RightBumper")) //{ // Debug.Log("Right Bumper!"); //} //if (Input.GetButtonDown("P1_360_BackButton")) //{ // Debug.Log("Back Button!"); //} //if (Input.GetButtonDown("P1_360_StartButton")) //{ // Debug.Log("Start Button!"); //} //if (Input.GetButtonDown("P1_360_LeftThumbStickButton")) //{ // Debug.Log("Left Thumbstick Button!"); //} //if (Input.GetButtonDown("P1_360_RightThumbStickButton")) //{ // Debug.Log("Right Thumbstick Button!"); //} //if (Input.GetAxis("P1_360_Triggers") > 0.001) //{ // Debug.Log("Right Trigger!"); //} //if (Input.GetAxis("P1_360_Triggers") < 0) //{ // Debug.Log("Left Trigger!"); //} //if (Input.GetAxis("P1_360_HorizontalDPAD") > 0.001) //{ // Debug.Log("Right D-PAD Button!"); //} //if (Input.GetAxis("P1_360_HorizontalDPAD") < 0) //{ // Debug.Log("Left D-PAD Button!"); //} //if (Input.GetAxis("P1_360_VerticalDPAD") > 0.001) //{ // Debug.Log("Up D-PAD Button!"); //} //if (Input.GetAxis("P1_360_VerticalDPAD") < 0) //{ // Debug.Log("Down D-PAD Button!"); //} } break; #endregion } #endregion } break; } }
// Update is called once per frame void Update() { NowFieldEvent = GameManager.GetInstance.GetNowFieldGameEvent(); NowControlOption = GameManager.GetInstance.GetNowControllOption(); #region 필드 이벤트 switch (NowFieldEvent) { #region 아무 이벤트 업음 case GameOption.Field_Event.None: { #region 키 입력 이벤트 switch (NowControlOption) { #region 게임 패드 입력 case GameOption.GameControllOption.GAMEPAD: { if (Input.GetButtonDown("P1_360_BButton")) { if (CanvasChecker == true) { if (NPC_Communication_UI_Prefab != null) { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Community_TextLog_Print(1000); } } } } break; #endregion #region 키보드 입력 case GameOption.GameControllOption.KEYBOARD: { if (Input.GetKeyDown(KeyCode.Escape)) { if (CanvasChecker == true) { if (NPC_Communication_UI_Prefab != null) { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Community_TextLog_Print(1000); } } } } break; #endregion } #endregion } break; #endregion #region 대화 이벤트 진행 중 case GameOption.Field_Event.Text_Event: { #region 키 입력 이벤트 switch (NowControlOption) { #region 게임 패드 입력 case GameOption.GameControllOption.GAMEPAD: { if (Input.GetButtonDown("P1_360_BButton")) { if (CanvasChecker == true) { if (NPC_Communication_UI_Prefab != null) { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Community_TextLog_Print(1000); } } } if (Input.GetButtonDown("P1_360_AButton")) { if (CanvasChecker == true) { if (NPC_Communication_UI_Prefab != null) { if (NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().GetNowTextPrintEnd() == true) { if (NowPrintTextNumber < NPC_Illusts.Count) { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Community_TextLog_Print(NowPrintTextNumber, NowPrintIllustIndexNumber[NowPrintTextNumber]); } else { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Community_TextLog_Print(NowPrintTextNumber, NowPrintIllustIndexNumber[0]); } NowPrintTextNumber++; } } } //if (NPC_Communication_UI_Prefab != null) //{ //} } } break; #endregion #region 키보드 입력 case GameOption.GameControllOption.KEYBOARD: { // 대화 스킵 if (Input.GetKeyDown(KeyCode.Escape)) { if (CanvasChecker == true) { if (NPC_Communication_UI_Prefab != null) { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Community_TextLog_Print(1000); } } } // 다음 대화 넘기기 if (Input.GetKeyDown(KeyCode.Space)) { if (CanvasChecker == true) { if (NPC_Communication_UI_Prefab != null) { if (NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().GetNowTextPrintEnd() == true) { if (NowPrintTextNumber < NPC_Illusts.Count) { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Community_TextLog_Print(NowPrintTextNumber, NowPrintIllustIndexNumber[NowPrintTextNumber]); } else { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Community_TextLog_Print(NowPrintTextNumber, NowPrintIllustIndexNumber[0]); } NowPrintTextNumber++; } } } //if (NPC_Communication_UI_Prefab != null) //{ // if (NPC_Communication_UI_Prefab.GetComponent<Communication_Field_UI>().GetNowTextPrintEnd() == true) // { // NowPrintTextNumber++; // } //} } } break; #endregion } #endregion } break; #endregion #region 카메라 이벤트 case GameOption.Field_Event.Camera_Event: { #region 키 입력 이벤트 switch (NowControlOption) { #region 게임 패드 입력 case GameOption.GameControllOption.GAMEPAD: { if (Input.GetButtonDown("P1_360_BButton")) { if (CanvasChecker == true) { if (NPC_Communication_UI_Prefab != null) { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Community_TextLog_Print(1000); } } } } break; #endregion #region 키보드 입력 case GameOption.GameControllOption.KEYBOARD: { if (Input.GetKeyDown(KeyCode.Escape)) { if (CanvasChecker == true) { if (NPC_Communication_UI_Prefab != null) { NPC_Communication_UI_Prefab.GetComponent <Communication_Field_UI>().Community_TextLog_Print(1000); } } } } break; #endregion } #endregion } break; #endregion } #endregion }