近距离镜头功能

This commit is contained in:
shenjianxing 2024-12-16 15:45:19 +08:00
parent a7553ce25f
commit c28366b814
30 changed files with 5895 additions and 3854 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -159,7 +159,7 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2587655409017112171}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
@ -167,9 +167,9 @@ RectTransform:
m_Father: {fileID: 3292507068126063065}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 0, y: 73.987274}
m_SizeDelta: {x: 0, y: 147.9745}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &3954091486572503913
MonoBehaviour:
@ -191,11 +191,11 @@ MonoBehaviour:
m_ChildAlignment: 5
m_Spacing: 15
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildForceExpandHeight: 1
m_ChildControlWidth: 0
m_ChildControlHeight: 0
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
m_ChildScaleHeight: 1
m_ReverseArrangement: 0
--- !u!114 &4914371533134699198
MonoBehaviour:
@ -210,7 +210,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
MarkType: 0
CustomComponentName:
CustomComponentName: BtnContent
CustomComment:
mComponentName: RectTransform
--- !u!1 &3744434503047722958
@ -227,7 +227,6 @@ GameObject:
- component: {fileID: 3626520715760532002}
- component: {fileID: 8641070026593548802}
- component: {fileID: 8813736358976867187}
- component: {fileID: 3267434741775315994}
m_Layer: 5
m_Name: BtnPrefab
m_TagString: Untagged
@ -391,20 +390,6 @@ MonoBehaviour:
m_ChildScaleWidth: 1
m_ChildScaleHeight: 0
m_ReverseArrangement: 0
--- !u!114 &3267434741775315994
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3744434503047722958}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalFit: 2
m_VerticalFit: 0
--- !u!1 &4014827401424058368
GameObject:
m_ObjectHideFlags: 0
@ -451,6 +436,7 @@ GameObject:
m_Component:
- component: {fileID: 3292507068126063065}
- component: {fileID: -6845373899084667377}
- component: {fileID: 1930005135453026217}
m_Layer: 0
m_Name: UIBtns
m_TagString: Untagged
@ -475,8 +461,8 @@ RectTransform:
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 0, y: 46.206665}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &-6845373899084667377
@ -493,3 +479,29 @@ MonoBehaviour:
m_EditorClassIdentifier:
BtnContent: {fileID: 1063180806212692488}
BtnPrefab: {fileID: 3626520715760532002}
--- !u!114 &1930005135453026217
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8109171602776719836}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Padding:
m_Left: 0
m_Right: 0
m_Top: 0
m_Bottom: 0
m_ChildAlignment: 8
m_Spacing: 0
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 1
m_ChildControlWidth: 1
m_ChildControlHeight: 1
m_ChildScaleWidth: 1
m_ChildScaleHeight: 1
m_ReverseArrangement: 0

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 709d972d771faa1469cae6ffac4d343e
PrefabImporter:
externalObjects: {}
userData:
assetBundleName: uicameraswitch_prefab
assetBundleVariant:

View File

@ -1,916 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<AppData>
<Module>
<Scene>Scene</Scene>
<Type>All</Type>
<Name>模块1</Name>
<Device>
<Name>骨刀</Name>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>撬骨板</Name>
<Icon>工具/撬骨板.png</Icon>
</Device>
<Device>
<Name>手术刀柄4号</Name>
<Icon>工具/手术刀柄4号.png</Icon>
</Device>
<Device>
<Name>手术刀片16号</Name>
<Icon>工具/手术刀片16号.png</Icon>
</Device>
<Device>
<Name>铁锤</Name>
<Icon>工具/铁锤.png</Icon>
</Device>
<Device>
<Name>咬骨钳</Name>
<Icon>工具/咬骨钳.png</Icon>
</Device>
<Device>
<Name>T管</Name>
<Icon>耗材/T管.png</Icon>
</Device>
<Device>
<Name>冲洗管</Name>
<Icon>耗材/冲洗管.png</Icon>
</Device>
<Device>
<Name>钢丝</Name>
<Icon>耗材/钢丝.png</Icon>
</Device>
<Device>
<Name>骨钉</Name>
<Icon>耗材/骨钉.png</Icon>
</Device>
<Device>
<Name>骨蜡</Name>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>Vetwish软骨素</Name>
<Icon>药品/Vetwish软骨素.png</Icon>
</Device>
<Device>
<Name>美洛昔康</Name>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>组织钳</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/zuzhiqian</Path>
<Tip>组织钳</Tip>
<BoxCollider size="0.15,0.05,0.06" center="-0.03,0,0"/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>肠钳</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/changqian</Path>
<Tip>肠钳</Tip>
<BoxCollider size="0.15,0.05,0.06" center="-0.03,0,0"/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>无齿海绵钳</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/wuchihaimianqian</Path>
<Tip>无齿海绵钳</Tip>
<BoxCollider size="0.15,0.05,0.06" center="-0.03,0,0"/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>S拉钩</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/pasted__SM_LaGou</Path>
<Tip>S拉钩</Tip>
<MeshCollider/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>肾形盘</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/pasted__SM_ShenXingPan</Path>
<Tip>肾形盘</Tip>
<MeshCollider/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>器械盒</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/pasted__polySurface114</Path>
<Tip>器械盒</Tip>
<MeshCollider/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>创巾钳</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/chuangjinqian</Path>
<Tip>创巾钳</Tip>
<BoxCollider size="0.15,0.05,0.06" center="-0.03,0,0"/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>直止血钳</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/zhizhixueqian</Path>
<Tip>直止血钳</Tip>
<BoxCollider size="0.15,0.05,0.06" center="-0.03,0,0"/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>弯止血钳</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/wanzhixueqian</Path>
<Tip>弯止血钳</Tip>
<BoxCollider size="0.15,0.05,0.06" center="-0.03,0,0"/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>持针钳</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/chizhenqian</Path>
<Tip>持针钳</Tip>
<BoxCollider size="0.15,0.05,0.06" center="-0.03,0,0"/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>钝剪</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/dunjian</Path>
<Tip>钝剪</Tip>
<BoxCollider size="0.15,0.05,0.06" center="-0.03,0,0"/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>尖剪</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/jianjian</Path>
<Tip>尖剪</Tip>
<BoxCollider size="0.15,0.05,0.06" center="-0.03,0,0"/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>无齿镊</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/pasted__pPlane4</Path>
<Tip>无齿镊</Tip>
<MeshCollider/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>手术刀柄3号</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/pasted__SM_ShouShuDaoBing</Path>
<Tip>手术刀柄3号</Tip>
<MeshCollider/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>刀片23号</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/pasted__SM_DaoPian23</Path>
<Tip>刀片23号</Tip>
<MeshCollider/>
<Icon>工具/骨刀.png</Icon>
</Device>
<Device>
<Name>速眠新</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/SM_sumianxin</Path>
<Tip>速眠新</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>头孢噻呋</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/pasted__SM_TouBao</Path>
<Tip>头孢噻呋</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>VC</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/pasted__SM_VC</Path>
<Tip>VC</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>硫酸阿托品</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/pasted__SM_ATuoPin</Path>
<Tip>硫酸阿托品</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>ATP</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/pasted__SM_SanLinsuanxiangan</Path>
<Tip>ATP</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>肾上腺素</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/pasted__SM_ShenShangXian</Path>
<Tip>肾上腺素</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>红霉素眼膏</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/SM_hongmeisuyangao</Path>
<Tip>红霉素眼膏</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>碘伏喷壶</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/pasted__polySurface119</Path>
<Tip>碘伏喷壶</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>75%酒精</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/pasted__polySurface117</Path>
<Tip>75%酒精</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>5%葡萄糖注射液50ml</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/pasted__pCylinder3</Path>
<Tip>5%葡萄糖注射液50ml</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>0.9%氯化钠注射液100ml</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_YaoPinLei/pasted__lhn1</Path>
<Tip>0.9%氯化钠注射液100ml</Tip>
<MeshCollider/>
<Icon>药品/美洛昔康.png</Icon>
</Device>
<Device>
<Name>电动剃毛刀</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__dtz1</Path>
<Tip>电动剃毛刀</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>医用外科罩</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/yiyongkouzhao</Path>
<Tip>医用外科罩</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>无菌敷料</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_WuJingFuLiao</Path>
<Tip>无菌敷料</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>纱布绷带</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_BengDai_pPlane6</Path>
<Tip>纱布绷带</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>24G静脉留置针</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/liuzhizhen/pasted__pasted__polySurface560</Path>
<Tip>24G静脉留置针</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>一次性注射器</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/SM_ShuYeQi</Path>
<Tip>一次性注射器</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>纸胶带</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_ZhiJiaoDai_polySurface125</Path>
<Tip>纸胶带</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>弹性粘性绷带</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__pPlane6</Path>
<Tip>弹性粘性绷带</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>大胶带</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__polySurface125</Path>
<Tip>大胶带</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>刷手毛刷</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__pCube35</Path>
<Tip>刷手毛刷</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>宠物电子体温计</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_DianZiTiWenJiShape</Path>
<Tip>宠物电子体温计</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>一次性注射器1</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/zhusheqi</Path>
<Tip>一次性注射器</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>肝素帽</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__pCylinder7</Path>
<Tip>肝素帽</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>创巾</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_ChuangJin</Path>
<Tip>创巾</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>保定保温毛巾</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/Object003__0</Path>
<Tip>保定保温毛巾</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>带针PGA缝线</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/zhenxian/平面</Path>
<Tip>带针PGA缝线</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>听诊器</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/SM_TingZhenQi/Archmodels70_054_01</Path>
<Tip>听诊器</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>一次性手术帽</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/SM_YiYongMao</Path>
<Tip>一次性手术帽</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>一次性手术衣</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/shoufuyi</Path>
<Tip>一次性手术衣</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>一次性外科灭菌手套</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/SM_YiYongMao.001</Path>
<Tip>一次性外科灭菌手套</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>无菌擦手纸</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_YiYongCaShouZhi</Path>
<Tip>无菌擦手纸</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>无菌纱布</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_ShouShuGongJu_SM_WuJunShaBu_SM_WuJunShaBu</Path>
<Tip>无菌纱布</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>酒精棉球</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_JiuJingMianQiu_polySurface123</Path>
<Tip>酒精棉球</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Device>
<Name>碘伏棉球</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_DianFuMianQiu_polySurface123</Path>
<Tip>碘伏棉球</Tip>
<MeshCollider/>
<Icon>耗材/骨蜡.png</Icon>
</Device>
<Score>
<Item step="术前准备" name="器械准备" sum="6.5" bind=""/>
<Item step="术前准备" name="药品准备" sum="5.5" bind=""/>
<Item step="术前准备" name="耗材准备" sum="15.5" bind=""/>
<Item step="术前准备" name="主刀人员准备" sum="10" bind=""/>
<Item step="术前准备" name="手术动物准备" sum="10" bind=""/>
<Item step="术前准备" name="术部剃毛准备" sum="10" bind=""/>
<Item step="术前准备" name="术部消毒准备" sum="10" bind=""/>
<Item step="手术过程" name="测试麻醉程度" sum="10" bind=""/>
<Item step="手术过程" name="术部开刀" sum="10" bind=""/>
<Item step="手术过程" name="找出病变小肠" sum="10" bind=""/>
<Item step="手术过程" name="去除病变小肠" sum="10" bind=""/>
<Item step="手术过程" name="肠端吻合" sum="10" bind=""/>
<Item step="手术过程" name="缝合切口" sum="10" bind=""/>
<Item step="手术过程" name="缝合后处理" sum="10" bind=""/>
</Score>
<FSM name="状态机1">
<State name="初始状态">
<Enter>
<Action type="Parallel">
<!--房间墙壁 暂时隐藏-->
<Action type="Show" value="SM_QvanChangJing/sence/pPlane1" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/zuzhiqian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/changqian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/wuchihaimianqian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/pasted__SM_LaGou" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/pasted__SM_ShenXingPan" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/pasted__polySurface114" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/chuangjinqian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/zhizhixueqian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/wanzhixueqian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/chizhenqian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/dunjian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/jianjian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/pasted__pPlane4" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/pasted__SM_ShouShuDaoBing" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_JianZiLei/pasted__SM_DaoPian23" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/SM_sumianxin" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_TouBao" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_VC" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_ATuoPin" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_SanLinsuanxiangan" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_ShenShangXian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/SM_hongmeisuyangao" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__polySurface119" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__polySurface117" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__pCylinder3" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/SM_sumianxin" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_TouBao" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_VC" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_ATuoPin" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_SanLinsuanxiangan" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_ShenShangXian" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/SM_hongmeisuyangao" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__polySurface119" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__polySurface117" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__pCylinder3" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__lhn1" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__dtz1" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/yiyongkouzhao" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_WuJingFuLiao" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_BengDai_pPlane6" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/liuzhizhen/pasted__pasted__polySurface560" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/SM_ShuYeQi" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_ZhiJiaoDai_polySurface125" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__pPlane6" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__polySurface125" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__pCube35" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_DianZiTiWenJiShape" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/zhusheqi" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__pCylinder7" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_ChuangJin" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/Object003__0" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/zhenxian/平面" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/SM_TingZhenQi/Archmodels70_054_01" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/SM_YiYongMao" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/shoufuyi" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/SM_YiYongMao.001" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_YiYongCaShouZhi" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_ShouShuGongJu_SM_WuJunShaBu_SM_WuJunShaBu" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_JiuJingMianQiu_polySurface123" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_BuLiaoLei/pasted__SM_DianFuMianQiu_polySurface123" isShow="false"></Action>
<Action type="Sequence">
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/SM_liusuanatuopin" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/SM_shenshangxianjisu" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_SuMianXin" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__SM_ShuTai" isShow="false"></Action>
<Action type="Show" value="SM_QvanChangJing/SM_YaoPinLei/pasted__xsy1" isShow="false"></Action>
<Action type="UIShow" value="UIOperationList"></Action>
<Action type="NextOperation"></Action>
</Action>
</Action>
</Enter>
</State>
<!--<Transision from="初始状态" to="状态2">
<Condition type="ObjClick" value="Cube (1)"></Condition>
</Transision>-->
</FSM>
<Operation moduleType="Exam">
<Step name="术前准备">
<Step name="器械准备">
<Reset>
<Action type="Log" value="1-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="SetScore" name="术前准备器械准备" value="6.5"></Action>
<Action type="Move" value="Main Camera" to="-3.206,3.24,-1.425" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="27.9597,270,2.899792E-06" time="0"></Action>
<Action type="Hint" value="请在右侧物品栏中,点选当前实训所需的器械" time="-1" icon="true" audio="Q001.mp3"></Action>
<Action type="UITools" devices="创巾钳,直止血钳,弯止血钳,组织钳,尖剪,钝剪,持针钳,无齿镊,手术刀柄3号,刀片23号,肠钳,肾形盘,器械盒,S拉钩,铁锤,撬骨板,咬骨钳,骨刀,手术刀柄4号,手术刀片16号" answers="创巾钳,直止血钳,弯止血钳,组织钳,尖剪,钝剪,持针钳,无齿镊,手术刀柄3号,刀片23号,肠钳,肾形盘,器械盒,S拉钩"
setActive="true"
rightLabel="提示:器械选择正确。"
wrongLabel="提示:器械选择错误,\r\n当前模块中不需要该物品。"
rightEvent="器械选择通过"
wrongEvent=""
rightScore=""
wrongScore="-0.5"
scoreStepName="术前准备器械准备"
/>
<Condition type="StrEvent" value="器械选择通过"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
</Step>
<Step name="药品准备">
<Reset>
<Action type="Log" value="1-2步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="SetScore" name="术前准备药品准备" value="5.5"></Action>
<Action type="Move" value="Main Camera" to="-3.942,3.24,-4.319" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="16.42331,180,0" time="0"></Action>
<Action type="Hint" value="请在右侧物品栏中,点选当前实训所需的药品" time="-1" icon="true" audio="音频.mp3"></Action>
<Action type="UITools"
devices="速眠新,头孢噻呋,VC,硫酸阿托品,ATP,肾上腺素,红霉素眼膏,碘伏喷壶,75%酒精,5%葡萄糖注射液50ml,0.9%氯化钠注射液100ml,Vetwish软骨素,美洛昔康"
answers="速眠新,头孢噻呋,VC,硫酸阿托品,ATP,肾上腺素,红霉素眼膏,碘伏喷壶,75%酒精,5%葡萄糖注射液50ml,0.9%氯化钠注射液100ml"
setActive="true"
rightLabel="提示:药品选择正确。"
wrongLabel="提示:药品选择错误,\r\n当前模块中不需要该物品。"
rightEvent="药品选择通过"
wrongEvent=""
rightScore=""
wrongScore="-0.5"
scoreStepName="术前准备药品准备"
/>
<Condition type="StrEvent" value="药品选择通过"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
</Step>
<Step name="耗材准备">
<Reset>
<Action type="Log" value="1-2步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="SetScore" name="术前准备耗材准备" value="15.5"></Action>
<Action type="Move" value="Main Camera" to="-5.532,3.438,-4" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="28.81702,180,0" time="0"></Action>
<Action type="Hint" value="请在右侧物品栏中,点选当前实训所需的耗材" time="-1" icon="true" audio="音频.mp3"></Action>
<Action type="UITools"
devices="电动剃毛刀,医用外科罩,无菌敷料,纱布绷带,24G静脉留置针,一次性注射器,纸胶带,弹性粘性绷带,大胶带,刷手毛刷,宠物电子体温计,一次性注射器1,肝素帽,创巾,保定保温毛巾,带针PGA缝线,听诊器,一次性手术帽,一次性手术衣,一次性外科灭菌手套,无菌擦手纸,无菌纱布,酒精棉球,碘伏棉球,T管,冲洗管,钢丝,骨钉,骨蜡"
answers="电动剃毛刀,医用外科罩,无菌敷料,纱布绷带,24G静脉留置针,一次性注射器,纸胶带,弹性粘性绷带,大胶带,刷手毛刷,宠物电子体温计,一次性注射器1,肝素帽,创巾,保定保温毛巾,带针PGA缝线,听诊器,一次性手术帽,一次性手术衣,一次性外科灭菌手套,无菌擦手纸,无菌纱布,酒精棉球,碘伏棉球"
setActive="true"
rightLabel="提示:耗材选择正确。"
wrongLabel="提示:耗材选择错误,\r\n当前模块中不需要该物品。"
rightEvent="耗材选择通过"
wrongEvent=""
rightScore=""
wrongScore="-0.5"
scoreStepName="术前准备耗材准备"
/>
<Condition type="StrEvent" value="耗材选择通过"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
</Step>
<Step name="主刀人员准备">
<Reset>
<Action type="Log" value="1-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="UIShow" value="UITools" isShow="false"></Action>
<Action type="Move" value="Main Camera" to="-3.206,3.24,-1.425" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="27.9597,270,2.899792E-06" time="0"></Action>
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
</Step>
</Step>
</Operation>
<Operation moduleType="Study">
<Step name="术前准备">
<Step name="器械准备">
<Reset>
<Action type="Log" value="1-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Log" value="2222"></Action>
<Action type="Move" value="Main Camera" to="-3.206,3.24,-1.425" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="27.9597,270,2.899792E-06" time="0"></Action>
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
</Step>
<Step name="药品准备">
<Reset>
<Action type="Log" value="1-2步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Move" value="Main Camera" to="-3.942,3.24,-4.319" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="16.42331,180,0" time="0"></Action>
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
</Step>
<Step name="耗材准备">
<Reset>
<Action type="Log" value="1-2步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Move" value="Main Camera" to="-5.532,3.438,-4" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="28.81702,180,0" time="0"></Action>
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
</Step>
<Step name="主刀人员准备">
<Reset>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Move" value="Main Camera" to="-3.102,1.519,0.357" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="0,90,0" time="0"></Action>
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
<Finished>
<Action type="Log" value="2-1步完成"></Action>
</Finished>
</Step>
<Step name="第一助手准备">
<Reset>
<Action type="Log" value="2-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
<Finished>
<Action type="Log" value="2-1步完成"></Action>
</Finished>
</Step>
<Step name="第二助手准备">
<Reset>
<Action type="Log" value="2-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
<Finished>
<Action type="Log" value="2-1步完成"></Action>
</Finished>
</Step>
<Step name="麻醉监护人员准备">
<Reset>
<Action type="Log" value="2-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
<Finished>
<Action type="Log" value="2-1步完成"></Action>
</Finished>
</Step>
<Step name="手术动物准备">
<Reset>
<Action type="Log" value="2-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
<Finished>
<Action type="Log" value="2-1步完成"></Action>
</Finished>
</Step>
<Step name="术部剃毛准备">
<Reset>
<Action type="Log" value="2-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
<Finished>
<Action type="Log" value="2-1步完成"></Action>
</Finished>
</Step>
<Step name="术部备皮准备">
<Reset>
<Action type="Log" value="2-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
<Finished>
<Action type="Log" value="2-1步完成"></Action>
</Finished>
</Step>
<Step name="术部消毒准备">
<Reset>
<Action type="Log" value="2-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
<Finished>
<Action type="Log" value="2-1步完成"></Action>
</Finished>
</Step>
<Step name="手术室准备">
<Reset>
<Action type="Log" value="2-1步重置"></Action>
</Reset>
<Start>
<Action type="Sequence">
<Action type="Btns" value="下一步"></Action>
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
<Action type="NextOperation"></Action>
</Action>
</Start>
<Finished>
<Action type="Log" value="2-1步完成"></Action>
</Finished>
</Step>
</Step>
</Operation>
</Module>
</AppData>

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 4ecee81cffb045b46bb5cab002e571ee
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName: app_xml
assetBundleVariant:

View File

@ -195,6 +195,7 @@ RectTransform:
- {fileID: 224541553065129386}
- {fileID: 224382408647199654}
- {fileID: 224990554141452176}
- {fileID: 8853360553218107249}
- {fileID: 224720355990569190}
- {fileID: 224360354940689636}
- {fileID: 4000013761627304}
@ -289,6 +290,7 @@ MonoBehaviour:
Bg: {fileID: 224541553065129386}
Common: {fileID: 224382408647199654}
PopUI: {fileID: 224990554141452176}
RightBottom: {fileID: 8853360553218107249}
CanvasPanel: {fileID: 224720355990569190}
--- !u!1 &1038258765803038
GameObject:
@ -526,3 +528,89 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &8521417695525377340
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8853360553218107249}
- component: {fileID: 1473542044787715036}
- component: {fileID: 2378677305359141195}
- component: {fileID: 923364079988649048}
m_Layer: 5
m_Name: RightBottom
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8853360553218107249
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8521417695525377340}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 224089801841284202}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 1828.92, y: 0}
m_Pivot: {x: 1, y: -0.000000461936}
--- !u!114 &1473542044787715036
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8521417695525377340}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Padding:
m_Left: 0
m_Right: 0
m_Top: 10
m_Bottom: 10
m_ChildAlignment: 8
m_Spacing: 5
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 1
m_ChildControlHeight: 1
m_ChildScaleWidth: 0
m_ChildScaleHeight: 1
m_ReverseArrangement: 1
--- !u!114 &2378677305359141195
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8521417695525377340}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalFit: 0
m_VerticalFit: 2
--- !u!222 &923364079988649048
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8521417695525377340}
m_CullTransparentMesh: 1

View File

@ -49,7 +49,7 @@ namespace QFramework
Forward = 6, //最高UI层用来放置UI特效和模型
[Obsolete]
AlwayTop = 7, //如果不想区分太复杂那最上层的UI请使用这个
RightBottom = 8,
// 一个 Panel 就是一个 Canvas 的 Panel
CanvasPanel = 100, //
}

View File

@ -29,7 +29,7 @@ using UnityEngine.UI;
namespace QFramework
{
[MonoSingletonPath("UIRoot")]
public class UIRoot : MonoBehaviour,ISingleton
public class UIRoot : MonoBehaviour, ISingleton
{
public Camera UICamera;
public Canvas Canvas;
@ -39,6 +39,7 @@ namespace QFramework
public RectTransform Bg;
public RectTransform Common;
public RectTransform PopUI;
public RectTransform RightBottom;
public RectTransform CanvasPanel;
private static UIRoot mInstance;
@ -122,6 +123,9 @@ namespace QFramework
case UILevel.PopUI:
panel.Transform.SetParent(PopUI);
break;
case UILevel.RightBottom:
panel.Transform.SetParent(RightBottom);
break;
}
}

View File

@ -0,0 +1,42 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 621f3f918dd5423d93a746ad8fc9082d, type: 3}
m_Name: Pipeline
m_EditorClassIdentifier:
CurrentTask:
ShowLog: 0
Status: 1
GameObject: {fileID: 0}
From: 0
NameToFullName: []
BindInfos:
- TypeName: UnityEngine.UI.Button
PathToRoot: Near
MemberName: Near
- TypeName: UnityEngine.UI.Button
PathToRoot: Normal
MemberName: Normal
ScriptsFolder: Assets/Scripts/Game
ClassName: UICameraView
Namespace: QFramework.Example
MainCode: "using UnityEngine;\r\nusing QFramework;\r\n\r\n// 1.\u8BF7\u5728\u83DC\u5355
\u7F16\u8F91\u5668\u6269\u5C55/Namespace Settings \u91CC\u8BBE\u7F6E\u547D\u540D\u7A7A\u95F4\r\n//
2.\u547D\u540D\u7A7A\u95F4\u66F4\u6539\u540E\uFF0C\u751F\u6210\u4EE3\u7801\u4E4B\u540E\uFF0C\u9700\u8981\u628A\u903B\u8F91\u4EE3\u7801\u6587\u4EF6\uFF08\u975E
Designer\uFF09\u7684\u547D\u540D\u7A7A\u95F4\u624B\u52A8\u66F4\u6539\r\nnamespace
QFramework.Example\r\n{\r\n\tpublic partial class UICameraView : ViewController\r\n\t{\r\n\t\tvoid
Start()\r\n\t\t{\r\n\t\t\t// Code Here\r\n\t\t}\r\n\t}\r\n}\r\n"
DesignerCode: "// Generate Id:d2d1da68-c3e5-49ea-97bc-bb83df3376bf\r\nusing UnityEngine;\r\n\r\n//
1.\u8BF7\u5728\u83DC\u5355 \u7F16\u8F91\u5668\u6269\u5C55/Namespace Settings
\u91CC\u8BBE\u7F6E\u547D\u540D\u7A7A\u95F4\r\n// 2.\u547D\u540D\u7A7A\u95F4\u66F4\u6539\u540E\uFF0C\u751F\u6210\u4EE3\u7801\u4E4B\u540E\uFF0C\u9700\u8981\u628A\u903B\u8F91\u4EE3\u7801\u6587\u4EF6\uFF08\u975E
Designer\uFF09\u7684\u547D\u540D\u7A7A\u95F4\u624B\u52A8\u66F4\u6539\r\nnamespace
QFramework.Example\r\n{\r\n\tpublic partial class UICameraView\r\n\t{\r\n\r\n\t\tpublic
UnityEngine.UI.Button Near;\r\n\r\n\t\tpublic UnityEngine.UI.Button Normal;\r\n\r\n\t}\r\n}\r\n"

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0f60134e2b246844aab383a7e61d7b26
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,895 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.12731749, g: 0.13414757, b: 0.1210787, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1
m_PVRDenoiserTypeIndirect: 1
m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 0}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 3
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
buildHeightMesh: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &53188555
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 53188556}
m_Layer: 5
m_Name: Bg
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &53188556
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 53188555}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2122121925}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &130655080
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 130655081}
m_Layer: 5
m_Name: Common
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &130655081
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 130655080}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2122121925}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &136292039
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 136292040}
- component: {fileID: 136292041}
m_Layer: 5
m_Name: Design
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &136292040
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 136292039}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7702520799703597199}
m_Father: {fileID: 2122121925}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &136292041
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 136292039}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6eba024ea32574239b57b098f1dc6282, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &288671884
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 288671885}
m_Layer: 5
m_Name: PopUI
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &288671885
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 288671884}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1.0000799, y: 1.0000799, z: 1.0000799}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2122121925}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &351404696
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 351404697}
m_Layer: 5
m_Name: CanvasPanel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &351404697
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 351404696}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2122121925}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &491639819
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 491639820}
- component: {fileID: 491639821}
m_Layer: 5
m_Name: Manager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &491639820
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 491639819}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2122121925}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &491639821
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 491639819}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5dc84f25d84334e168bf64050b91e1fb, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &713689470
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 713689473}
- component: {fileID: 713689471}
- component: {fileID: 713689472}
m_Layer: 5
m_Name: UICamera
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!20 &713689471
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 713689470}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 3
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_Iso: 200
m_ShutterSpeed: 0.005
m_Aperture: 16
m_FocusDistance: 10
m_FocalLength: 50
m_BladeCount: 5
m_Curvature: {x: 2, y: 11}
m_BarrelClipping: 0.25
m_Anamorphism: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 5
m_Depth: 99
m_CullingMask:
serializedVersion: 2
m_Bits: 32
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!124 &713689472
Behaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 713689470}
m_Enabled: 1
--- !u!4 &713689473
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 713689470}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -100}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2122121925}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1244093303
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1244093305}
- component: {fileID: 1244093304}
m_Layer: 0
m_Name: TestUICameraSwitch
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1244093304
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1244093303}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b6b7a3e7dc894eaca1053ef166cdad33, type: 3}
m_Name:
m_EditorClassIdentifier:
PanelName: UICameraSwitch
Level: 0
mOtherPanels: []
--- !u!4 &1244093305
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1244093303}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1465251369
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1465251370}
- component: {fileID: 1465251372}
- component: {fileID: 1465251371}
m_Layer: 5
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1465251370
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1465251369}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2122121925}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1465251371
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1465251369}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_SendPointerHoverToParent: 1
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_RepeatDelay: 0.5
m_ForceModuleActive: 1
--- !u!114 &1465251372
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1465251369}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 5
--- !u!1 &2025469526
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2025469527}
- component: {fileID: 2025469530}
- component: {fileID: 2025469529}
- component: {fileID: 2025469528}
m_Layer: 5
m_Name: RightBottom
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2025469527
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2025469526}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 2122121925}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 1828.92, y: 0}
m_Pivot: {x: 1, y: -0.000000461936}
--- !u!222 &2025469528
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2025469526}
m_CullTransparentMesh: 1
--- !u!114 &2025469529
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2025469526}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalFit: 0
m_VerticalFit: 2
--- !u!114 &2025469530
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2025469526}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Padding:
m_Left: 0
m_Right: 0
m_Top: 10
m_Bottom: 10
m_ChildAlignment: 8
m_Spacing: 5
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 0
m_ChildControlHeight: 1
m_ChildScaleWidth: 0
m_ChildScaleHeight: 1
m_ReverseArrangement: 0
--- !u!1 &2122121920
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2122121925}
- component: {fileID: 2122121924}
- component: {fileID: 2122121923}
- component: {fileID: 2122121922}
- component: {fileID: 2122121921}
m_Layer: 5
m_Name: UIRoot
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &2122121921
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122121920}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d2db7fffd623c478eba3d2cb84034d2f, type: 3}
m_Name:
m_EditorClassIdentifier:
UICamera: {fileID: 713689471}
Canvas: {fileID: 2122121924}
CanvasScaler: {fileID: 2122121923}
GraphicRaycaster: {fileID: 2122121922}
Bg: {fileID: 53188556}
Common: {fileID: 130655081}
PopUI: {fileID: 288671885}
RightBottom: {fileID: 2025469527}
CanvasPanel: {fileID: 351404697}
--- !u!114 &2122121922
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122121920}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 0
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &2122121923
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122121920}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 1
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 1920, y: 1080}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0.5
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
m_PresetInfoIsWorld: 0
--- !u!223 &2122121924
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122121920}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 713689471}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 25
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
m_SortingOrder: 100
m_TargetDisplay: 0
--- !u!224 &2122121925
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2122121920}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 53188556}
- {fileID: 130655081}
- {fileID: 288671885}
- {fileID: 2025469527}
- {fileID: 351404697}
- {fileID: 136292040}
- {fileID: 1465251370}
- {fileID: 713689473}
- {fileID: 491639820}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!1001 &7702520799703597198
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 136292040}
m_Modifications:
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_AnchorMin.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_SizeDelta.x
value: 1920
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_SizeDelta.y
value: 109.71753
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_AnchoredPosition.x
value: -960
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_AnchoredPosition.y
value: 54.858765
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5028980093370937003, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
propertyPath: m_Name
value: UICameraSwitch
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
--- !u!224 &7702520799703597199 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 4829130443431971859, guid: 709d972d771faa1469cae6ffac4d343e, type: 3}
m_PrefabInstance: {fileID: 7702520799703597198}
m_PrefabAsset: {fileID: 0}
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 2122121925}
- {fileID: 1244093305}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 40eb88bcecf73ac45bc8d2eeaa211458
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -17,6 +17,7 @@ public class ActionHelper
{ "UIOperationList", typeof(UIOperationList) },
{ "UIBtns", typeof(QFramework.Example.UIBtns) },
{ "UITools", typeof(QFramework.Example.UITools) },
{ "UICameraSwitch", typeof(QFramework.Example.UICameraSwitch) },
};
@ -122,6 +123,9 @@ public class ActionHelper
return ShowAction.Allocate(act.Value, show.args[0]);
case "SetScore":
return SetScoreAction.Allocate(act.Name, act.Value);
case "CameraSwitch":
var cs = (XMLTool.StringListAction)act;
return CameraSwitchAction.Allocate(cs.args[0], cs.args[1], cs.args[2], cs.args[3], cs.args[4], cs.args[5], cs.args[6]);
}
break;
case XMLTool.Condition condition:

View File

@ -51,7 +51,7 @@ public class BtnsAction : IAction
{
data.btns.Add(item);
}
UIKit.OpenPanelAsync<UIBtns>(uiData: data).ToAction().StartGlobal(() => this.Finish());
UIKit.OpenPanelAsync<UIBtns>(uiData: data, canvasLevel: UILevel.RightBottom).ToAction().StartGlobal(() => this.Finish());
}
public void Reset()

View File

@ -0,0 +1,90 @@
using QFramework.Example;
using System;
using Unity.VisualScripting;
using UnityEngine;
namespace QFramework
{
internal class CameraSwitchAction : IAction
{
public System.Action OnFinished { get; set; }
private CameraSwitchAction()
{
}
private static readonly SimpleObjectPool<CameraSwitchAction> mPool =
new SimpleObjectPool<CameraSwitchAction>(() => new CameraSwitchAction(), null, 10);
string nearPos;
string nearRot;
string normalPos;
string normalRot;
string isNear;
string nearTime;
string farTime;
public static CameraSwitchAction Allocate(string nearPos, string nearRot, string nearTime, string normalPos, string normalRot, string farTime, string isNear, System.Action OnFinished = null)
{
var retNode = mPool.Allocate();
retNode.ActionID = ActionKit.ID_GENERATOR++;
retNode.Deinited = false;
retNode.Reset();
retNode.OnFinished = OnFinished;
retNode.nearPos = nearPos;
retNode.nearRot = nearRot;
retNode.nearTime = nearTime;
retNode.normalPos = normalPos;
retNode.normalRot = normalRot;
retNode.farTime = farTime;
retNode.isNear = isNear;
return retNode;
}
public ulong ActionID { get; set; }
public ActionStatus Status { get; set; }
public void OnStart()
{
UICameraSwitchData data = new UICameraSwitchData();
data.nearPos = Utility.GetVector3FromStrArray(nearPos);
data.nearRot = Utility.GetVector3FromStrArray(nearRot);
data.normalPos = Utility.GetVector3FromStrArray(normalPos);
data.normalRot = Utility.GetVector3FromStrArray(normalRot);
bool.TryParse(isNear, out data.isNear);
UIKit.OpenPanelAsync<UICameraSwitch>(uiData: data, canvasLevel: UILevel.RightBottom).ToAction().StartGlobal(() => this.Finish());
}
public void OnExecute(float dt)
{
}
public void OnFinish()
{
}
public void Reset()
{
Status = ActionStatus.NotStart;
Paused = false;
}
public bool Paused { get; set; }
public void Deinit()
{
if (!Deinited)
{
OnFinished = null;
Deinited = true;
mPool.Recycle(this);
}
}
public bool Deinited { get; set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8b1c8f0a577e0c344867dae3b68c389c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ceb079adafdb52141a201d9686d066ad
guid: 9c01f2815492c944090a79c7314cccc6
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -0,0 +1,16 @@
// Generate Id:d2d1da68-c3e5-49ea-97bc-bb83df3376bf
using UnityEngine;
// 1.请在菜单 编辑器扩展/Namespace Settings 里设置命名空间
// 2.命名空间更改后,生成代码之后,需要把逻辑代码文件(非 Designer的命名空间手动更改
namespace QFramework.Example
{
public partial class UICameraView
{
public UnityEngine.UI.Button Near;
public UnityEngine.UI.Button Normal;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f1171000fe9743340adf844ab2ab81ab
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,20 @@
using UnityEngine;
using QFramework;
// 1.请在菜单 编辑器扩展/Namespace Settings 里设置命名空间
// 2.命名空间更改后,生成代码之后,需要把逻辑代码文件(非 Designer的命名空间手动更改
namespace QFramework.Example
{
public partial class UICameraView : ViewController
{
void Start()
{
}
//public void Set
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a0a5a98a325af5e438058b6a2ac853df
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -5,7 +5,7 @@ using QFramework;
namespace QFramework.Example
{
// Generate Id:2336a2ee-2104-47d2-8db9-934f895c54fa
// Generate Id:3318e08c-1131-4b76-ba22-da67a23f4ff4
public partial class UIBtns
{
public const string Name = "UIBtns";

View File

@ -0,0 +1,49 @@
using System;
using UnityEngine;
using UnityEngine.UI;
using QFramework;
namespace QFramework.Example
{
// Generate Id:d11b81ea-59ca-45c1-99ce-7d8386a770e3
public partial class UICameraSwitch
{
public const string Name = "UICameraSwitch";
[SerializeField]
public UnityEngine.UI.Toggle Near;
[SerializeField]
public UnityEngine.UI.Toggle Far;
private UICameraSwitchData mPrivateData = null;
protected override void ClearUIComponents()
{
Near = null;
Far = null;
mData = null;
}
public UICameraSwitchData Data
{
get
{
return mData;
}
}
UICameraSwitchData mData
{
get
{
return mPrivateData ?? (mPrivateData = new UICameraSwitchData());
}
set
{
mUIData = value;
mPrivateData = value;
}
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 98e32e14227c1144b96739e37d4a21c9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,85 @@
using UnityEngine;
using UnityEngine.UI;
using QFramework;
using DG.Tweening;
namespace QFramework.Example
{
public class UICameraSwitchData : UIPanelData
{
public Vector3 nearPos;
public Vector3 nearRot;
public Vector3 normalPos;
public Vector3 normalRot;
public bool isNear = false;
}
public partial class UICameraSwitch : UIPanel
{
protected override void OnInit(IUIData uiData = null)
{
mData = uiData as UICameraSwitchData ?? new UICameraSwitchData();
// please add init code here
Near.onValueChanged.AddListener(isOn =>
{
if (isOn)
{
Camera.main.transform.DOMove(mData.nearPos, 0);
Camera.main.transform.DORotate(mData.nearRot, 0);
}
Near.transform.Find("Bg/Image").gameObject.SetActive(isOn);
});
Far.onValueChanged.AddListener(isOn =>
{
if (isOn)
{
Camera.main.transform.DOMove(mData.normalPos, 0);
Camera.main.transform.DORotate(mData.normalRot, 0);
}
Far.transform.Find("Bg/Image").gameObject.SetActive(isOn);
});
}
protected override void OnOpen(IUIData uiData = null)
{
mData = uiData as UICameraSwitchData ?? new UICameraSwitchData();
if (mData.isNear)
{
if (Near.isOn == false)
{
Near.isOn = true;
}
else
{
Camera.main.transform.DOMove(mData.nearPos, 0);
Camera.main.transform.DORotate(mData.nearRot, 0);
}
}
else
{
if (Far.isOn == false)
{
Far.isOn = true;
}
else
{
Camera.main.transform.DOMove(mData.normalPos, 0);
Camera.main.transform.DORotate(mData.normalRot, 0);
}
}
}
protected override void OnShow()
{
}
protected override void OnHide()
{
}
protected override void OnClose()
{
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1a020db540c8dbc4190251d0fcc780f4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -479,6 +479,75 @@ namespace XMLTool
newAction = act;
}
break;
case "CameraSwitch":
{
var act = new StringListAction();
XAttribute isShow = action.Attribute("nearPos");
if (isShow != null)
{
act.args.Add(isShow.Value);
}
else
{
act.args.Add("0,0,0");
}
XAttribute nearRot = action.Attribute("nearRot");
if (nearRot != null)
{
act.args.Add(nearRot.Value);
}
else
{
act.args.Add("0,0,0");
}
XAttribute nearTime = action.Attribute("nearTime");
if (nearTime != null)
{
act.args.Add(nearTime.Value);
}
else
{
act.args.Add("0");
}
XAttribute normalPos = action.Attribute("normalPos");
if (normalPos != null)
{
act.args.Add(normalPos.Value);
}
else
{
act.args.Add("0,0,0");
}
XAttribute normalRot = action.Attribute("normalRot");
if (normalRot != null)
{
act.args.Add(normalRot.Value);
}
else
{
act.args.Add("0,0,0");
}
XAttribute farTime = action.Attribute("farTime");
if (farTime != null)
{
act.args.Add(farTime.Value);
}
else
{
act.args.Add("0");
}
XAttribute isNear = action.Attribute("isNear");
if (isNear != null)
{
act.args.Add(isNear.Value);
}
else
{
act.args.Add("false");
}
newAction = act;
}
break;
default:
newAction = new Action();
break;

View File

@ -629,9 +629,12 @@
</Reset>
<Start>
<Action type="Sequence">
<Action type="Btns" value="下一步,上一步,确定,取消"></Action>
<Action type="CameraSwitch" nearPos="-3.543,3.007,-1.463" nearRot="27.9597,270,2.899792E-06" normalPos="-3.206,3.24,-1.425" normalRot="27.9597,270,2.899792E-06" isNear="false"></Action>
<Action type="SetScore" name="术前准备器械准备" value="6.5"></Action>
<Action type="Move" value="Main Camera" to="-3.206,3.24,-1.425" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="27.9597,270,2.899792E-06" time="0"></Action>
<!--<Action type="Move" value="Main Camera" to="-3.206,3.24,-1.425" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="27.9597,270,2.899792E-06" time="0"></Action>-->
<Action type="Hint" value="请在右侧物品栏中,点选当前实训所需的器械" time="-1" icon="true" audio="Q001.mp3"></Action>
<Action type="UITools" devices="创巾钳,直止血钳,弯止血钳,组织钳,尖剪,钝剪,持针钳,无齿镊,手术刀柄3号,刀片23号,肠钳,肾形盘,器械盒,S拉钩,铁锤,撬骨板,咬骨钳,骨刀,手术刀柄4号,手术刀片16号" answers="创巾钳,直止血钳,弯止血钳,组织钳,尖剪,钝剪,持针钳,无齿镊,手术刀柄3号,刀片23号,肠钳,肾形盘,器械盒,S拉钩"
setActive="true"
@ -655,9 +658,8 @@
<Start>
<Action type="Sequence">
<Action type="SetScore" name="术前准备药品准备" value="5.5"></Action>
<Action type="Move" value="Main Camera" to="-3.942,3.24,-4.319" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="16.42331,180,0" time="0"></Action>
<Action type="Hint" value="请在右侧物品栏中,点选当前实训所需的药品" time="-1" icon="true" audio="音频.mp3"></Action>
<Action type="CameraSwitch" nearPos="-3.942,3.24,-4.319" nearRot="16.42331,180,0" nearTime="1" normalPos="-3.942,3.24,-3.946" normalRot="16.42331,180,-5.305351E-14" farTime="1" isNear="false"></Action>
<Action type="Hint" value="请在右侧物品栏中,点选当前实训所需的药品" time="-1" icon="true" audio="q001.mp3"></Action>
<Action type="UITools"
devices="速眠新,头孢噻呋,VC,硫酸阿托品,ATP,肾上腺素,红霉素眼膏,碘伏喷壶,75%酒精,5%葡萄糖注射液50ml,0.9%氯化钠注射液100ml,Vetwish软骨素,美洛昔康"
answers="速眠新,头孢噻呋,VC,硫酸阿托品,ATP,肾上腺素,红霉素眼膏,碘伏喷壶,75%酒精,5%葡萄糖注射液50ml,0.9%氯化钠注射液100ml"
@ -685,7 +687,7 @@
<Action type="SetScore" name="术前准备耗材准备" value="15.5"></Action>
<Action type="Move" value="Main Camera" to="-5.532,3.438,-4" time="0"></Action>
<Action type="Rotate" value="Main Camera" to="28.81702,180,0" time="0"></Action>
<Action type="Hint" value="请在右侧物品栏中,点选当前实训所需的耗材" time="-1" icon="true" audio="音频.mp3"></Action>
<Action type="Hint" value="请在右侧物品栏中,点选当前实训所需的耗材" time="-1" icon="true" audio="q001.mp3"></Action>
<Action type="UITools"
devices="电动剃毛刀,医用外科罩,无菌敷料,纱布绷带,24G静脉留置针,一次性注射器,纸胶带,弹性粘性绷带,大胶带,刷手毛刷,宠物电子体温计,一次性注射器1,肝素帽,创巾,保定保温毛巾,带针PGA缝线,听诊器,一次性手术帽,一次性手术衣,一次性外科灭菌手套,无菌擦手纸,无菌纱布,酒精棉球,碘伏棉球,T管,冲洗管,钢丝,骨钉,骨蜡"
answers="电动剃毛刀,医用外科罩,无菌敷料,纱布绷带,24G静脉留置针,一次性注射器,纸胶带,弹性粘性绷带,大胶带,刷手毛刷,宠物电子体温计,一次性注射器1,肝素帽,创巾,保定保温毛巾,带针PGA缝线,听诊器,一次性手术帽,一次性手术衣,一次性外科灭菌手套,无菌擦手纸,无菌纱布,酒精棉球,碘伏棉球"