private void OnTriggerExit(Collider other) { //GameObject player = other.gameObject; customCharController player = other.GetComponent <customCharController>(); if (player != null) { Hud.CloseMessagePanel(player); } }
private void OnTriggerExit(Collider other) { GameObject player = other.gameObject; //customCharController item = other.GetComponent<customCharController>(); if (player != null) { //Debug.Log("CIAO USCITO"); Hud.CloseMessagePanel(player); } }
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(); * }*/ }