public override void OnExit() { base.OnExit(); cameraPosition = CameraMgr.position; cameraRotation = CameraMgr.rotation; ResourceMgr.ToggleAllGameObjects(false); CameraMgr.UseDefaultSkybox(); foreach (string cloneUUID in triggers) { TriggerMgr.ToggleTrigger(cloneUUID, false); } }
public override void OnEnter() { base.OnEnter(); CameraMgr.Place(cameraPosition); CameraMgr.Euler(cameraRotation); Debug.Log(skybox); if (null != skybox) { CameraMgr.ApplySkybox(skybox); } ResourceMgr.ToggleGameObjects(objs.ToArray(), true); foreach (string cloneUUID in triggers) { TriggerMgr.ToggleTrigger(cloneUUID, true); } }