void OnEnable() { authoring = (RoomPortalAuthoring)target; var gameObject = authoring.gameObject; if (!GameObjectEditorIconHelper.GetHasIcon(gameObject)) { GameObjectEditorIconHelper.SetIcon(gameObject, GameObjectEditorIconHelper.LabelIcon.Blue); } }
private RoomAuthoring GetOtherRoomInPortal(RoomPortalAuthoring portalAuthoring, RoomAuthoring roomAuthoring) { if (portalAuthoring.RoomAuthoringA == roomAuthoring) { return(portalAuthoring.RoomAuthoringB); } if (portalAuthoring.RoomAuthoringB == roomAuthoring) { return(portalAuthoring.RoomAuthoringA); } throw new ArgumentException("Room not contained in portal"); }
private RoomAuthoring GetOtherRoomInPortal(RoomPortalAuthoring portalAuthoring) { return(GetOtherRoomInPortal(portalAuthoring, authoring)); }
private bool GetIsContainedInPortal(RoomPortalAuthoring portalAuthoring, RoomAuthoring roomAuthoring) { return(portalAuthoring.RoomAuthoringA == roomAuthoring || portalAuthoring.RoomAuthoringB == roomAuthoring); }
private bool GetIsContainedInPortal(RoomPortalAuthoring portalAuthoring) { return(GetIsContainedInPortal(portalAuthoring, authoring)); }