(); } m_collider.enabled = true; } override public void OnQuestEnter() { base.OnQuestEnter(); m_collider.enabled = true; omFrameWork.Inst.Dialog.GetWSHud.SetIndicatorObjActive(true); GameObject.FindWithTag("IndicatorObje"> (); } m_collider.enabled = true; } override public void OnQuestEnter() { base.OnQuestEnter(); m_collider.enabled = true; omFrameWork.Inst.Dialog.GetWSHud.SetIndicatorObjActive(true); GameObject.FindWithTag("IndicatorObje"> (); } m_collider.enabled = true; } override public void OnQuestEnter() { base.OnQuestEnter(); m_collider.enabled = true; omFrameWork.Inst.Dialog.GetWSHud.SetIndicatorObjActive(true); GameObject.FindWithTag("IndicatorObje">
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Autohand;
using omFrame;
using omFrame.Network;
using omFrame.Network.TCP.Packet;
using omFrame.Utility;
public class TailHook_Touch : TailHookQuest
{
// 이벤트를 발생시키기 위한 콜라이더, OntriggerEnter를 통해 이벤트 발생
public Collider m_collider;
[Tooltip("특정 UI 버튼이나 오브젝트를 클릭시 이벤트를 발생시키기 위한 미션")]
public GameObject[] m_activeGameObjectArr;
// OnTriggerEnter시 들어오는 객체를 구별하기 위한 용도. 현재는 Player객체 일 경우에만 이벤트 발생
public LayerMask m_targetLayer;
public bool m_isEnter = false;
override public void Init()
{
base.Init();
if (m_collider == null)
{
m_collider = GetComponent<Collider>();
}
m_collider.enabled = true;
}
override public void OnQuestEnter()
{
base.OnQuestEnter();
m_collider.enabled = true;
omFrameWork.Inst.Dialog.GetWSHud.SetIndicatorObjActive(true);
GameObject.FindWithTag("IndicatorObject").SetActive(true);
m_isEnter = true;
}
override public void OnQuestExit()
{
base.OnQuestExit();
m_collider.enabled = false;
GameObject.FindWithTag("IndicatorObject").SetActive(false);
omFrameWork.Inst.Dialog.GetWSHud.SetIndicatorObjActive(false);
m_isEnter = false;
// 버그 발생 방지
omFrameWork.Inst.VR.StopVibrateFinger(FTS.HandType.Left, VibrateFingerType.All);
omFrameWork.Inst.VR.StopVibrateFinger(FTS.HandType.Right, VibrateFingerType.All);
}
private void OnTriggerEnter(Collider collider)
{
if(collider.name == "LeftViveTracker_Hand" || collider.name == "RightViveTracker_Hand")
{
m_collider.enabled = false;
if (m_isEnter)
netQuest.SendQuest();
}
}
#region 다이어로그 관련
public void Debuging_Dialog()
{
// 1~9 숫자키 눌러 다이얼로그 테스트
if ((Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) && Input.GetKeyDown(KeyCode.Alpha1))
{
omLog.LogChannel(eLogChannel.Framework, string.Format("Debuging_Dialog > HudBase"));
//허드 테스트
//omFrameWork.Inst.Dialog.GetWSHud.StartAllHudInfo();
//omFrameWork.Inst.Dialog.GetWSHud.SetTitleText(omUIHelper.TestGetScriptTableID());
//페이드 인아웃
//omFrameWork.Inst.Dialog.GetWSHud.SetCameraFollow(camera);
omFrameWork.Inst.Dialog.GetWSHud.FadeOutInUI(1, 1, 1, 1);
//tts테스트
//omFrameWork.Inst.Dialog.GetWSHud.SetTitleText(7002, true);
//omFrameWork.Inst.Dialog.GetWSHud.SetInfoText(7005, true);
//프로그래스바 테스트
//omFrameWork.Inst.Dialog.GetWSHud.OpenProgressBar();
}
else if ((Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) && Input.GetKeyDown(KeyCode.Alpha2))
{
omLog.LogChannel(eLogChannel.Framework, string.Format("Debuging_Dialog > Marker"));
//마커 테스트
omFrameWork.Inst.Dialog.GetWSMarker.OpenMaker(MarkerViewType.IMAGE, omUIHelper.TestGetSpriteTableID(), Vector3.zero, 200, 200, Quaternion.identity);
}
else if ((Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) && Input.GetKeyDown(KeyCode.Alpha3))
{
omLog.LogChannel(eLogChannel.Framework, string.Format("Debuging_Dialog > HandTouch"));
//핸드터치 테스트
omFrameWork.Inst.Dialog.GetWSHandTouch.OpenTouch(omUIHelper.TestGetSpriteTableID(), Vector3.zero, 350, 350, Quaternion.identity, null);
}
else if ((Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) && Input.GetKeyDown(KeyCode.Alpha4))
{
omLog.LogChannel(eLogChannel.Framework, string.Format("Debuging_Dialog > ProgressBar"));
//오브젝트 프로그래스바 테스트
omFrameWork.Inst.Dialog.GetWSProgressBar.OpenProgressBar(Vector3.zero, 300, 150, Quaternion.identity, 100);
}
else if ((Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) && Input.GetKeyDown(KeyCode.Alpha5))
{
omLog.LogChannel(eLogChannel.Framework, string.Format("Debuging_Dialog > HudEmoji"));
//허드 이모지 테스트
omFrameWork.Inst.Dialog.GetWSHud.OpenInfoAni(HudEmojiSignType.Motion2, 0.5f);
}
else if ((Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) && Input.GetKeyDown(KeyCode.Alpha6))
{
omLog.LogChannel(eLogChannel.Framework, string.Format("Debuging_Dialog > Alpha6"));
}
else if ((Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) && Input.GetKeyDown(KeyCode.Alpha7))
{
omLog.LogChannel(eLogChannel.Framework, string.Format("Debuging_Dialog > Alpha7"));
}
else if ((Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) && Input.GetKeyDown(KeyCode.Alpha8))
{
omLog.LogChannel(eLogChannel.Framework, string.Format("Debuging_Dialog > Alpha8"));
}
else if ((Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) && Input.GetKeyDown(KeyCode.Alpha9))
{
omLog.LogChannel(eLogChannel.Framework, string.Format("Debuging_Dialog > Alpha9"));
}
}
#endregion
}