void OnEnable()
        {
            authoring = (RoomExcludePortalAuthoring)target;

            var gameObject = authoring.gameObject;

            if (!GameObjectEditorIconHelper.GetHasIcon(gameObject))
            {
                GameObjectEditorIconHelper.SetIcon(gameObject, GameObjectEditorIconHelper.LabelIcon.Red);
            }
        }
Esempio n. 2
0
 private bool GetIsContainedInExclude(RoomExcludePortalAuthoring excludeAuthoring, RoomAuthoring roomAuthoring)
 {
     return(excludeAuthoring.RoomAuthoringA == roomAuthoring || excludeAuthoring.RoomAuthoringB == roomAuthoring);
 }