예제 #1
0
    private void OnTriggerEnter2D(Collider2D cl_trigger)
    {
        OK_GameManager Manager = GO_GameMana.GetComponent <OK_GameManager>();

        if (cl_trigger.gameObject.tag == "Player")
        {
            Manager.ImageOn();
        }
    }
예제 #2
0
    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);
        }
    }
예제 #3
0
    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");
        }
    }