private void OnTriggerEnter2D(Collider2D cl_trigger) { OK_GameManager Manager = GO_GameMana.GetComponent <OK_GameManager>(); if (cl_trigger.gameObject.tag == "Player") { Manager.ImageOn(); } }
private void OnTriggerExit(Collider cl_trigger) { OK_GameManager Manager = GO_GameMana.GetComponent <OK_GameManager>(); if (cl_trigger.gameObject.tag == "Player") { Manager.ImageOn(); fc_NPCDialog.gameObject.SetActive(false); } }
private void OnTriggerExit2D(Collider2D cl_trigger) { OK_GameManager Manager = GO_GameMana.GetComponent <OK_GameManager>(); if (cl_trigger.gameObject.tag == "Player") { Manager.ImageOn(); fc_NPCDialog.gameObject.SetActive(false); GO_Player.gameObject.SendMessage("StartMove"); } }