void OnEnable() { authoring = (RoomExcludePortalAuthoring)target; var gameObject = authoring.gameObject; if (!GameObjectEditorIconHelper.GetHasIcon(gameObject)) { GameObjectEditorIconHelper.SetIcon(gameObject, GameObjectEditorIconHelper.LabelIcon.Red); } }
private bool GetIsContainedInExclude(RoomExcludePortalAuthoring excludeAuthoring, RoomAuthoring roomAuthoring) { return(excludeAuthoring.RoomAuthoringA == roomAuthoring || excludeAuthoring.RoomAuthoringB == roomAuthoring); }