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

            var gameObject = authoring.gameObject;

            if (!GameObjectEditorIconHelper.GetHasIcon(gameObject))
            {
                GameObjectEditorIconHelper.SetIcon(gameObject, GameObjectEditorIconHelper.LabelIcon.Blue);
            }
        }
Exemple #2
0
        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");
        }
Exemple #3
0
 private RoomAuthoring GetOtherRoomInPortal(RoomPortalAuthoring portalAuthoring)
 {
     return(GetOtherRoomInPortal(portalAuthoring, authoring));
 }
Exemple #4
0
 private bool GetIsContainedInPortal(RoomPortalAuthoring portalAuthoring, RoomAuthoring roomAuthoring)
 {
     return(portalAuthoring.RoomAuthoringA == roomAuthoring || portalAuthoring.RoomAuthoringB == roomAuthoring);
 }
Exemple #5
0
 private bool GetIsContainedInPortal(RoomPortalAuthoring portalAuthoring)
 {
     return(GetIsContainedInPortal(portalAuthoring, authoring));
 }