public static void EnablePov(ScenePovData povData) { if (Studio.Studio.Instance.dicObjectCtrl.TryGetValue(povData.CharaId, out var chara)) { currentChara = ((OCIChar)chara).charInfo; currentCharaId = chara.objectInfo.dicKey; LookRotation = povData.Rotation; CurrentFOV = povData.Fov; plugin.EnablePov(); } }
protected override void OnSceneLoad(SceneOperationKind operation, ReadOnlyDictionary <int, ObjectCtrlInfo> loadedItems) { var extData = GetExtendedData(); if (extData == null) { return; } if (operation == SceneOperationKind.Load && extData.data.TryGetValue(DictID, out var povRawData)) { RealPOV.EnablePov(MessagePackSerializer.Deserialize <ScenePovData>((byte[])povRawData)); } }