wangguan
2020-11-19 51e5211590b58df92c4bbdb8974b14f96276690a
全新适配
7 files modified
265 ■■■■■ changed files
Assets/Materials/UI/tileTowerVSMat.mat 2 ●●● patch | view | raw | blame | history
Assets/Prefabs/UI/Endless/BottomCanvas.prefab 172 ●●●●● patch | view | raw | blame | history
Assets/Scenes/Levels/Battle/Endless2D.unity 20 ●●●●● patch | view | raw | blame | history
Assets/Scripts/Guide/CharForeach.cs 4 ●●●● patch | view | raw | blame | history
Assets/Scripts/Guide/GuidePanel.cs 47 ●●●● patch | view | raw | blame | history
Assets/Scripts/Guide/Mask/RectGuidance.cs 4 ●●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs 16 ●●●●● patch | view | raw | blame | history
Assets/Materials/UI/tileTowerVSMat.mat
@@ -40,7 +40,7 @@
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _MainTex:
        m_Texture: {fileID: 2800000, guid: 93f40a01d57fbff418fc0b54b6ab7d9f, type: 3}
        m_Texture: {fileID: 2800000, guid: 8c9a3d26120e78f40aa4ef9ed23d573c, type: 3}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _MetallicGlossMap:
Assets/Prefabs/UI/Endless/BottomCanvas.prefab
@@ -265,6 +265,44 @@
  m_FillOrigin: 0
  m_UseSpriteMesh: 0
  m_PixelsPerUnitMultiplier: 1
--- !u!1 &3399554977934936983
GameObject:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  serializedVersion: 6
  m_Component:
  - component: {fileID: 2866087324517106990}
  m_Layer: 5
  m_Name: Bottom
  m_TagString: Untagged
  m_Icon: {fileID: 0}
  m_NavMeshLayer: 0
  m_StaticEditorFlags: 0
  m_IsActive: 1
--- !u!224 &2866087324517106990
RectTransform:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 3399554977934936983}
  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_Children:
  - {fileID: 8563026178876940214}
  - {fileID: 4623057513073301098}
  - {fileID: 7642260986973534167}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 2
  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: 50}
  m_SizeDelta: {x: 0, y: 100}
  m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &4306811289090099484
GameObject:
  m_ObjectHideFlags: 0
@@ -299,8 +337,8 @@
  - {fileID: 661367110392523085}
  - {fileID: 2858083007431408240}
  - {fileID: 1745381381343351158}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 1
  m_Father: {fileID: 2866087324517106990}
  m_RootOrder: 0
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 1, y: 0}
  m_AnchorMax: {x: 1, y: 0}
@@ -896,7 +934,7 @@
  - {fileID: 8444485125150162961}
  - {fileID: 943742417900630348}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 2
  m_RootOrder: 1
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 0}
  m_AnchorMax: {x: 0.5, y: 0}
@@ -1044,7 +1082,7 @@
  m_Children:
  - {fileID: 4623057511387957795}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 7
  m_RootOrder: 5
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0, y: 1}
  m_AnchorMax: {x: 0, y: 1}
@@ -1119,7 +1157,7 @@
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_Children: []
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 22
  m_RootOrder: 20
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0, y: 0}
  m_AnchorMax: {x: 1, y: 1}
@@ -1328,7 +1366,7 @@
  m_Children:
  - {fileID: 4623057511488971176}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 15
  m_RootOrder: 13
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 0.5}
  m_AnchorMax: {x: 0.5, y: 0.5}
@@ -1673,7 +1711,7 @@
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_Children: []
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 20
  m_RootOrder: 18
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 0.5}
  m_AnchorMax: {x: 0.5, y: 0.5}
@@ -1827,7 +1865,7 @@
  - {fileID: 2593358111013876826}
  - {fileID: 2593358110207618566}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 4
  m_RootOrder: 3
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0, y: 0.5}
  m_AnchorMax: {x: 0, y: 0.5}
@@ -1958,7 +1996,7 @@
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_Children: []
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 16
  m_RootOrder: 14
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 0.5}
  m_AnchorMax: {x: 0.5, y: 0.5}
@@ -2323,7 +2361,7 @@
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_Children: []
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 8
  m_RootOrder: 6
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 1, y: 0.5}
  m_AnchorMax: {x: 1, y: 0.5}
@@ -2866,7 +2904,7 @@
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_Children: []
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 21
  m_RootOrder: 19
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 0.5}
  m_AnchorMax: {x: 0.5, y: 0.5}
@@ -3003,7 +3041,7 @@
  - {fileID: 4623057511623356894}
  - {fileID: 4623057512200465642}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 13
  m_RootOrder: 11
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 1}
  m_AnchorMax: {x: 0.5, y: 1}
@@ -3348,7 +3386,7 @@
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_Children: []
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 19
  m_RootOrder: 17
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 0.5}
  m_AnchorMax: {x: 0.5, y: 0.5}
@@ -4165,7 +4203,7 @@
  - {fileID: 4623057512415519653}
  - {fileID: 4623057512080954351}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 9
  m_RootOrder: 7
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 1, y: 0.5}
  m_AnchorMax: {x: 1, y: 0.5}
@@ -4272,7 +4310,7 @@
  m_BlockingObjects: 0
  m_BlockingMask:
    serializedVersion: 2
    m_Bits: 4294967295
    m_Bits: 524087
--- !u!114 &7478702450202136628
MonoBehaviour:
  m_ObjectHideFlags: 0
@@ -4472,7 +4510,7 @@
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_Children: []
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 17
  m_RootOrder: 15
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 1, y: 0.5}
  m_AnchorMax: {x: 1, y: 0.5}
@@ -4689,7 +4727,7 @@
  - {fileID: 3028643154847299432}
  - {fileID: 4623057512074301610}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 23
  m_RootOrder: 21
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 0.5}
  m_AnchorMax: {x: 0.5, y: 0.5}
@@ -4752,7 +4790,7 @@
  m_BlockingObjects: 0
  m_BlockingMask:
    serializedVersion: 2
    m_Bits: 4294967295
    m_Bits: 524087
--- !u!1 &4623057513026888502
GameObject:
  m_ObjectHideFlags: 0
@@ -4935,8 +4973,8 @@
  - {fileID: 6000510335155308273}
  - {fileID: 4623057511285327671}
  - {fileID: 4623057513050824274}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 3
  m_Father: {fileID: 2866087324517106990}
  m_RootOrder: 1
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0, y: 0}
  m_AnchorMax: {x: 0, y: 0}
@@ -5132,7 +5170,7 @@
  m_LocalScale: {x: 1.2, y: 1.2, z: 1.2}
  m_Children: []
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 10
  m_RootOrder: 8
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 1}
  m_AnchorMax: {x: 0.5, y: 1}
@@ -5258,7 +5296,7 @@
  - {fileID: 4623057511856796898}
  - {fileID: 4623057512663774582}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 18
  m_RootOrder: 16
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 0.5}
  m_AnchorMax: {x: 0.5, y: 0.5}
@@ -5513,7 +5551,7 @@
  - {fileID: 4623057513320342619}
  - {fileID: 4623057511982691805}
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 12
  m_RootOrder: 10
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0.5, y: 1}
  m_AnchorMax: {x: 0.5, y: 1}
@@ -5779,8 +5817,8 @@
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_Children: []
  m_Father: {fileID: 2459412157512953547}
  m_RootOrder: 5
  m_Father: {fileID: 2866087324517106990}
  m_RootOrder: 2
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
  m_AnchorMin: {x: 0, y: 0}
  m_AnchorMax: {x: 0, y: 0}
@@ -5872,11 +5910,9 @@
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_Children:
  - {fileID: 4623057512515962851}
  - {fileID: 8563026178876940214}
  - {fileID: 4623057511312575043}
  - {fileID: 4623057513073301098}
  - {fileID: 2866087324517106990}
  - {fileID: 4623057511676237794}
  - {fileID: 7642260986973534167}
  - {fileID: 3069635935526566538}
  - {fileID: 4623057511334348350}
  - {fileID: 4623057511951820392}
@@ -5953,7 +5989,7 @@
    - target: {fileID: 3389300523282741960, guid: 296dddd14ba103e4aa483333fe748c6f,
        type: 3}
      propertyPath: m_IsActive
      value: 1
      value: 0
      objectReference: {fileID: 0}
    - target: {fileID: 3389300523282741961, guid: 296dddd14ba103e4aa483333fe748c6f,
        type: 3}
@@ -5993,7 +6029,7 @@
    - target: {fileID: 3389300523282741961, guid: 296dddd14ba103e4aa483333fe748c6f,
        type: 3}
      propertyPath: m_RootOrder
      value: 6
      value: 4
      objectReference: {fileID: 0}
    - target: {fileID: 3389300523282741961, guid: 296dddd14ba103e4aa483333fe748c6f,
        type: 3}
@@ -6027,15 +6063,15 @@
      objectReference: {fileID: 0}
    m_RemovedComponents: []
  m_SourcePrefab: {fileID: 100100000, guid: 296dddd14ba103e4aa483333fe748c6f, type: 3}
--- !u!198 &3069635936539494428 stripped
ParticleSystem:
  m_CorrespondingSourceObject: {fileID: 3389300522131408991, guid: 296dddd14ba103e4aa483333fe748c6f,
    type: 3}
  m_PrefabInstance: {fileID: 401030652621062211}
  m_PrefabAsset: {fileID: 0}
--- !u!4 &3069635935526566538 stripped
Transform:
  m_CorrespondingSourceObject: {fileID: 3389300523282741961, guid: 296dddd14ba103e4aa483333fe748c6f,
    type: 3}
  m_PrefabInstance: {fileID: 401030652621062211}
  m_PrefabAsset: {fileID: 0}
--- !u!198 &3069635936539494428 stripped
ParticleSystem:
  m_CorrespondingSourceObject: {fileID: 3389300522131408991, guid: 296dddd14ba103e4aa483333fe748c6f,
    type: 3}
  m_PrefabInstance: {fileID: 401030652621062211}
  m_PrefabAsset: {fileID: 0}
@@ -6288,15 +6324,15 @@
      objectReference: {fileID: 0}
    m_RemovedComponents: []
  m_SourcePrefab: {fileID: 100100000, guid: 5bac711eb8890f244b4146b3339516ff, type: 3}
--- !u!1 &4623057511292283299 stripped
GameObject:
  m_CorrespondingSourceObject: {fileID: 7193677034299007581, guid: 5bac711eb8890f244b4146b3339516ff,
    type: 3}
  m_PrefabInstance: {fileID: 2593358110680681470}
  m_PrefabAsset: {fileID: 0}
--- !u!224 &4623057511292283298 stripped
RectTransform:
  m_CorrespondingSourceObject: {fileID: 7193677034299007580, guid: 5bac711eb8890f244b4146b3339516ff,
    type: 3}
  m_PrefabInstance: {fileID: 2593358110680681470}
  m_PrefabAsset: {fileID: 0}
--- !u!1 &4623057511292283299 stripped
GameObject:
  m_CorrespondingSourceObject: {fileID: 7193677034299007581, guid: 5bac711eb8890f244b4146b3339516ff,
    type: 3}
  m_PrefabInstance: {fileID: 2593358110680681470}
  m_PrefabAsset: {fileID: 0}
@@ -6858,7 +6894,7 @@
    - target: {fileID: 2366615777647505734, guid: edd0f54808263644d9740a9c0040b493,
        type: 3}
      propertyPath: m_RootOrder
      value: 14
      value: 12
      objectReference: {fileID: 0}
    - target: {fileID: 2366615777647505734, guid: edd0f54808263644d9740a9c0040b493,
        type: 3}
@@ -6950,12 +6986,6 @@
    type: 3}
  m_PrefabInstance: {fileID: 4623057511554511967}
  m_PrefabAsset: {fileID: 0}
--- !u!224 &6989462182969459993 stripped
RectTransform:
  m_CorrespondingSourceObject: {fileID: 2366615777647505734, guid: edd0f54808263644d9740a9c0040b493,
    type: 3}
  m_PrefabInstance: {fileID: 4623057511554511967}
  m_PrefabAsset: {fileID: 0}
--- !u!114 &1184553460454064981 stripped
MonoBehaviour:
  m_CorrespondingSourceObject: {fileID: 5789385329819219722, guid: edd0f54808263644d9740a9c0040b493,
@@ -6968,6 +6998,12 @@
  m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
  m_Name: 
  m_EditorClassIdentifier: 
--- !u!224 &6989462182969459993 stripped
RectTransform:
  m_CorrespondingSourceObject: {fileID: 2366615777647505734, guid: edd0f54808263644d9740a9c0040b493,
    type: 3}
  m_PrefabInstance: {fileID: 4623057511554511967}
  m_PrefabAsset: {fileID: 0}
--- !u!1001 &4623057511616550406
PrefabInstance:
  m_ObjectHideFlags: 0
@@ -7288,12 +7324,6 @@
      objectReference: {fileID: 0}
    m_RemovedComponents: []
  m_SourcePrefab: {fileID: 100100000, guid: 49213eb9f84d76e47b6b19e9a246b83c, type: 3}
--- !u!224 &3028643155083363564 stripped
RectTransform:
  m_CorrespondingSourceObject: {fileID: 7651475816072793687, guid: 49213eb9f84d76e47b6b19e9a246b83c,
    type: 3}
  m_PrefabInstance: {fileID: 4623057511726664379}
  m_PrefabAsset: {fileID: 0}
--- !u!114 &7735723185037147486 stripped
MonoBehaviour:
  m_CorrespondingSourceObject: {fileID: 3130750578608519141, guid: 49213eb9f84d76e47b6b19e9a246b83c,
@@ -7306,6 +7336,12 @@
  m_Script: {fileID: 11500000, guid: 9a92c216c3d4e97459299f45fc451060, type: 3}
  m_Name: 
  m_EditorClassIdentifier: 
--- !u!224 &3028643155083363564 stripped
RectTransform:
  m_CorrespondingSourceObject: {fileID: 7651475816072793687, guid: 49213eb9f84d76e47b6b19e9a246b83c,
    type: 3}
  m_PrefabInstance: {fileID: 4623057511726664379}
  m_PrefabAsset: {fileID: 0}
--- !u!1001 &4623057511748623860
PrefabInstance:
  m_ObjectHideFlags: 0
@@ -7445,6 +7481,12 @@
      objectReference: {fileID: 0}
    m_RemovedComponents: []
  m_SourcePrefab: {fileID: 100100000, guid: 49213eb9f84d76e47b6b19e9a246b83c, type: 3}
--- !u!224 &3028643155105321891 stripped
RectTransform:
  m_CorrespondingSourceObject: {fileID: 7651475816072793687, guid: 49213eb9f84d76e47b6b19e9a246b83c,
    type: 3}
  m_PrefabInstance: {fileID: 4623057511748623860}
  m_PrefabAsset: {fileID: 0}
--- !u!114 &7735723185050839569 stripped
MonoBehaviour:
  m_CorrespondingSourceObject: {fileID: 3130750578608519141, guid: 49213eb9f84d76e47b6b19e9a246b83c,
@@ -7457,12 +7499,6 @@
  m_Script: {fileID: 11500000, guid: 9a92c216c3d4e97459299f45fc451060, type: 3}
  m_Name: 
  m_EditorClassIdentifier: 
--- !u!224 &3028643155105321891 stripped
RectTransform:
  m_CorrespondingSourceObject: {fileID: 7651475816072793687, guid: 49213eb9f84d76e47b6b19e9a246b83c,
    type: 3}
  m_PrefabInstance: {fileID: 4623057511748623860}
  m_PrefabAsset: {fileID: 0}
--- !u!1001 &4623057511883902042
PrefabInstance:
  m_ObjectHideFlags: 0
@@ -7793,15 +7829,15 @@
      objectReference: {fileID: 0}
    m_RemovedComponents: []
  m_SourcePrefab: {fileID: 100100000, guid: 5bac711eb8890f244b4146b3339516ff, type: 3}
--- !u!1 &2593358111913102219 stripped
GameObject:
  m_CorrespondingSourceObject: {fileID: 7193677034299007581, guid: 5bac711eb8890f244b4146b3339516ff,
    type: 3}
  m_PrefabInstance: {fileID: 4623057512515660246}
  m_PrefabAsset: {fileID: 0}
--- !u!224 &2593358111913102218 stripped
RectTransform:
  m_CorrespondingSourceObject: {fileID: 7193677034299007580, guid: 5bac711eb8890f244b4146b3339516ff,
    type: 3}
  m_PrefabInstance: {fileID: 4623057512515660246}
  m_PrefabAsset: {fileID: 0}
--- !u!1 &2593358111913102219 stripped
GameObject:
  m_CorrespondingSourceObject: {fileID: 7193677034299007581, guid: 5bac711eb8890f244b4146b3339516ff,
    type: 3}
  m_PrefabInstance: {fileID: 4623057512515660246}
  m_PrefabAsset: {fileID: 0}
@@ -7855,7 +7891,7 @@
    - target: {fileID: 162820266587863501, guid: 550ad0a7c16a47a49bfb36ef49a73a67,
        type: 3}
      propertyPath: m_RootOrder
      value: 11
      value: 9
      objectReference: {fileID: 0}
    - target: {fileID: 162820266587863501, guid: 550ad0a7c16a47a49bfb36ef49a73a67,
        type: 3}
Assets/Scenes/Levels/Battle/Endless2D.unity
@@ -2827,6 +2827,7 @@
  - component: {fileID: 580839157}
  - component: {fileID: 580839156}
  - component: {fileID: 580839155}
  - component: {fileID: 580839158}
  m_Layer: 0
  m_Name: BackCamera
  m_TagString: Untagged
@@ -2899,6 +2900,18 @@
  m_Father: {fileID: 0}
  m_RootOrder: 8
  m_LocalEulerAnglesHint: {x: 90.800995, y: 0, z: 0}
--- !u!114 &580839158
MonoBehaviour:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 580839154}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: ef302018e3b8e2b47add4bb149612913, type: 3}
  m_Name:
  m_EditorClassIdentifier:
--- !u!1 &587345874
GameObject:
  m_ObjectHideFlags: 0
@@ -4081,7 +4094,7 @@
    - target: {fileID: 4623057511707873648, guid: 29da21b318f42054db30c52123aa4dbf,
        type: 3}
      propertyPath: m_AnchoredPosition.x
      value: -68.954956
      value: -68.95508
      objectReference: {fileID: 0}
    - target: {fileID: 4623057512524248738, guid: 29da21b318f42054db30c52123aa4dbf,
        type: 3}
@@ -4208,6 +4221,11 @@
      propertyPath: m_AnchoredPosition.x
      value: 92.51001
      objectReference: {fileID: 0}
    - target: {fileID: 8563026178876940214, guid: 29da21b318f42054db30c52123aa4dbf,
        type: 3}
      propertyPath: m_AnchoredPosition.x
      value: -153.3999
      objectReference: {fileID: 0}
    m_RemovedComponents: []
  m_SourcePrefab: {fileID: 100100000, guid: 29da21b318f42054db30c52123aa4dbf, type: 3}
--- !u!1 &898016331
Assets/Scripts/Guide/CharForeach.cs
@@ -25,7 +25,7 @@
    public void StartShowWord(string str, Action cb)
    {
        Debug.Log("StartShowWord" + str);
        //Debug.Log("StartShowWord" + str);
        word = str;
        text.text = "";
@@ -39,7 +39,7 @@
    public void ShowWordImmediately()
    {
        Debug.Log("ShowWordImmediately");
       // Debug.Log("ShowWordImmediately");
        StopCoroutine("TypeText");
        text.text = "";
        char[] charArray = word.ToCharArray();
Assets/Scripts/Guide/GuidePanel.cs
@@ -139,6 +139,27 @@
        dragHandImg.gameObject.SetActive(false);
    }
    private Vector2 tmpOffect;
    /// <summary>
    /// Start is called on the frame when a script is enabled just before
    /// any of the Update methods is called the first time.
    /// </summary>
    void Start()
    {
        tmpOffect = GetComponent<RectTransform>().offsetMin;
        tmpOffect = new Vector2(tmpOffect.x, tmpOffect.y * 0.5f);
        image_SkillRim.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        fire1.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        fire2.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        towerPos.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        towerPos2.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        water1.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
        skill.GetComponent<RectTransform>().anchoredPosition -= tmpOffect;
    }
    /// <summary>
    /// 设置引导框
    /// </summary>
@@ -179,7 +200,7 @@
            SetRimActive(true);
            AddButtonListener(towerBuyBtn, ac);
            Image btnImg = towerBuyBtn.GetComponent<Image>();
            InitRectGuidance(btnImg, 159, 73.5f);
            InitRectGuidance(btnImg, 159, 73.5f, Vector2.one);
            SetRimPos(towerBuyBtn);
            //maskObj.ShowImmediately();
@@ -269,7 +290,7 @@
            SetRimActive(true);
            Image btnImg = transform.Find("Image_TowerPos").GetComponent<Image>();
            towerPos.enabled = true;
            InitRectGuidance(btnImg, 75, 80);
            InitRectGuidance(btnImg, 75, 80, tmpOffect);
            SetRimPos(btnImg.gameObject);
            //maskObj.ShowImmediately();
            ShowDragPath(fire1.GetStartP, btnImg.rectTransform);
@@ -304,7 +325,7 @@
            Image btnImg = go.GetComponent<Image>();
            btnImg.raycastTarget = false;
            InitRectGuidance(btnImg, 75, 80);
            InitRectGuidance(btnImg, 75, 80, tmpOffect);
            SetRimPos(go);
            //maskObj.ShowImmediately();
            StartCoroutine(ShowRimTip(str));
@@ -337,7 +358,7 @@
            AddButtonListener(towerBuyBtn, ac);
            Image btnImg = towerBuyBtn.GetComponent<Image>();
            InitRectGuidance(btnImg, 159, 73.5f);
            InitRectGuidance(btnImg, 159, 73.5f, Vector2.one);
            SetRimPos(towerBuyBtn);
            //maskObj.ShowImmediately();
        }
@@ -346,7 +367,7 @@
            GameObject go = transform.Find("Image_TowerPos2").gameObject;
            Image btnImg = go.GetComponent<Image>();
            btnImg.raycastTarget = true;
            InitRectGuidance(btnImg, 75, 80);
            InitRectGuidance(btnImg, 75, 80, tmpOffect);
            SetRimPos(go);
            //maskObj.ShowImmediately();
            ShowDragPath(water1.GetStartP, btnImg.rectTransform);
@@ -390,7 +411,7 @@
            ShowDragPath(skill.GetStartP, image_SkillRim.rectTransform);
            InitRectGuidance(image_SkillRim, 79, 265);
            InitRectGuidance(image_SkillRim, 79, 265, tmpOffect);
        }
        else if (currentIndex == 1)
@@ -436,10 +457,13 @@
    {
        SetRimActive(true);
        RectTransform rt = target.GetComponent<RectTransform>();
        image_Rim_Rect.anchoredPosition = rt.anchoredPosition;
        if (target.gameObject.name == "TowerBuyBtn")
        {
            image_Rim_Rect.anchoredPosition = towerBuyBtnPos;
            image_Rim_Rect.anchoredPosition = towerBuyBtnPos - tmpOffect;
        }
        else
        {
            image_Rim_Rect.anchoredPosition = rt.anchoredPosition;
        }
        image_Rim_Rect.sizeDelta = (rt.sizeDelta * rt.localScale) + rimOffset;
        if (image_Rim_Rect.sizeDelta.x > 200)
@@ -454,7 +478,10 @@
        }
        if (changeTipPos)
        {
            image_Tip_Rect.anchoredPosition = new Vector2(image_Rim_Rect.anchoredPosition.x, image_Rim_Rect.anchoredPosition.y + 74 / 2 + image_Rim_Rect.sizeDelta.y / 2);
            //image_Tip_Rect.anchoredPosition -= tmpOffect;
        }
    }
@@ -484,7 +511,7 @@
    /// 抠出来一个区域
    /// </summary>
    /// <param name="target"></param>
    void InitRectGuidance(Image target, float x, float y)
    void InitRectGuidance(Image target, float x, float y, Vector2 offect)
    {
        if (!maskObj.gameObject.activeSelf)
        {
@@ -498,7 +525,7 @@
        }
        else
        {
            maskObj.InitForCamera(target, x, y);
            maskObj.InitForCamera(target, x, y, offect);
        }
    }
Assets/Scripts/Guide/Mask/RectGuidance.cs
@@ -106,7 +106,7 @@
    }
    public void InitForCamera(Image target, float x, float y)
    public void InitForCamera(Image target, float x, float y, Vector2 offect)
    {
        this.target = target;
        if (eventPenetrate != null)
@@ -115,7 +115,7 @@
        }
        Vector2 center = target.GetComponent<RectTransform>().anchoredPosition;
        center += offect;
        material.SetVector("_Center", center);
        material.SetFloat("_SliderX", x);
        material.SetFloat("_SliderY", y);
Assets/Scripts/TowerDefense/UI/EndlessUIStart.cs
@@ -71,6 +71,17 @@
        EndlessBossHPManager.instance.HideHP();
        EndlessScoreManager.instance.HideScore();
        float ratio = 0.06666667f;
        RectTransform ts = GetComponent<RectTransform>();
        float tmpScale = ratio / ts.localScale.x - 1.0f;
        float offect = tmpScale * (ts.sizeDelta.y * 0.5f);
        //Debug.Log($"tmpScale:{tmpScale}  offect:{offect}");
        Vector2 tmpOffect = new Vector2(0, offect);
        transform.Find("Panel/Bottom").GetComponent<RectTransform>().anchoredPosition += tmpOffect;
        transform.Find("Panel/TowerBuyBtn").GetComponent<RectTransform>().anchoredPosition += tmpOffect;
        //查询是否已经做过了新手引导
        int guide = PlayerPrefs.GetInt("GemBattleGuide");
        GameConfig.IsNewbie = guide == 0;
@@ -83,7 +94,8 @@
            countDownTextNew.text = "";
            countDownTextNew.gameObject.SetActive(false);
            Instantiate(Resources.Load<GameObject>("UI/Guide/GuidePanel"), transform.Find("Panel"));
            GameObject guideObj = Instantiate(Resources.Load<GameObject>("UI/Guide/GuidePanel"), transform.Find("Panel"));
            guideObj.GetComponent<RectTransform>().offsetMin += tmpOffect;
            AddGuideEvent();
        }
@@ -92,6 +104,8 @@
        GameConfig.EndlessPortUseSkillTowerCount = 0;
        AudioSourceManager.Ins.Play(AudioEnum.BGM2);
    }
    /// <summary>