private void OnTriggerExit2D(Collider2D col) { Debug.Log("Exit"); if (CommonAPI.IsRole(col.gameObject)) { RemoveFromCanInteractRoleList(col.gameObject); } }
private void OnTriggerEnter2D(Collider2D col) { Debug.Log("Enter"); if (CommonAPI.IsRole(col.gameObject)) { AppendCanInteractRoleList(col.gameObject); } }