コード例 #1
0
    private void OnTriggerExit(Collider other)
    {
        //GameObject player = other.gameObject;
        customCharController player = other.GetComponent <customCharController>();

        if (player != null)
        {
            Hud.CloseMessagePanel(player);
        }
    }
コード例 #2
0
    private void OnTriggerExit(Collider other)
    {
        GameObject player = other.gameObject;

        //customCharController item = other.GetComponent<customCharController>();
        if (player != null)
        {
            //Debug.Log("CIAO USCITO");
            Hud.CloseMessagePanel(player);
        }
    }
コード例 #3
0
    private void OnTriggerExit(Collider other)
    {
        Debug.Log("CIAO USCITO");
        Hud.CloseMessagePanel();

        /* customCharController item = other.GetComponent<customCharController>();
         * if (item != null)
         * {
         *   Debug.Log("CIAO USCITO");
         *   Hud.CloseMessagePanel();
         * }*/
    }