Commit 8ae614a8 authored by wanqing's avatar wanqing

添加所有关卡

parent b440b367
......@@ -297,12 +297,12 @@
<Reference Include="SyntaxTree.VisualStudio.Unity.Bridge">
<HintPath>C:/Program Files (x86)/Microsoft Visual Studio Tools for Unity/16.0/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll</HintPath>
</Reference>
<Reference Include="DOTweenEditor">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Assets/Plugins/DOTween/Editor/DOTweenEditor.dll</HintPath>
</Reference>
<Reference Include="DOTween">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Assets/Plugins/DOTween/DOTween.dll</HintPath>
</Reference>
<Reference Include="DOTweenEditor">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Assets/Plugins/DOTween/Editor/DOTweenEditor.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Library/PackageCache/com.unity.ext.nunit@1.0.0/net35/unity-custom/nunit.framework.dll</HintPath>
</Reference>
......
......@@ -166,6 +166,10 @@ MonoBehaviour:
m_EditorClassIdentifier:
levelPrefs:
- {fileID: 7132143057902326427, guid: a09b8b8b695f00c429343f067902169b, type: 3}
- {fileID: 641847574482041699, guid: b9343f2adfbad3d45910efa7d0677584, type: 3}
- {fileID: 8744738608159344848, guid: ede9ddf15b410904798bc74f3ca63a8c, type: 3}
- {fileID: 4567337292791389910, guid: 7a841727d29832047bb76befac15a6c3, type: 3}
- {fileID: 7109006367036189340, guid: bc146b9b911d9494faeb6d77dbe34891, type: 3}
--- !u!1 &707446923
GameObject:
m_ObjectHideFlags: 0
......
......@@ -5,7 +5,7 @@ using UnityEngine;
public class FirstLevelTrigger : MonoBehaviour
{
//public Transform m_targetTrans;
private Vector3 m_pos = new Vector3(-2.15f, 0.22f, 0);
private Vector3 m_pos = new Vector3(-1.61f, 0.22f, 0);
private Quaternion m_rotation = Quaternion.identity;
private bool m_bControl = true;
private Transform m_targetTrans;
......
......@@ -4,14 +4,36 @@ using UnityEngine;
public class TargetTrigger : MonoBehaviour
{
private Vector3 m_pos = new Vector3(-1.61f, 0.22f, 0);
private Quaternion m_rotation = Quaternion.identity;
private bool m_bControl = true;
private void OnTriggerEnter(Collider other)
private Transform m_targetTrans;
//private void OnTriggerEnter(Collider other)
//{
// if (other.gameObject.CompareTag("Target") && m_bControl)
// {
// m_bControl = false;
// BattleCtrl.instance.OnBattleWin();
// BattleCtrl.instance.levelManager.curLevel.chainRopeView.CatchObjEnterTarget();
// }
//}
protected virtual void OnTriggerEnter(Collider collider)
{
if (other.gameObject.CompareTag("Target") && m_bControl)
Rigidbody rb = collider.GetComponent<Rigidbody>();
if (collider.gameObject.CompareTag("Target") && m_bControl && rb)
{
m_bControl = false;
m_targetTrans = collider.transform;
rb.constraints = RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionY | RigidbodyConstraints.FreezePositionZ |
RigidbodyConstraints.FreezeRotationX | RigidbodyConstraints.FreezeRotationY;
BattleCtrl.instance.OnBattleWin();
BattleCtrl.instance.levelManager.curLevel.chainRopeView.CatchObjEnterTarget();
}
}
private void Update()
{
if (!m_bControl && m_targetTrans)
{
m_targetTrans.localPosition = Vector3.Lerp(m_targetTrans.localPosition, m_pos, 0.03f);
}
}
}
......@@ -6365,7 +6365,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 03b62a6533b97bf428f151a5820f3ec4, type: 3}
m_Sprite: {fileID: 21300000, guid: a40909543a92f234399ecd9f72def59d, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
......@@ -6382,7 +6382,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6064464677571250785}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a8ba38326c7546e449f8c538a5c9b48f, type: 3}
m_Name:
......@@ -6396,7 +6396,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6064464677571250785}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
......@@ -6863,7 +6863,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 03b62a6533b97bf428f151a5820f3ec4, type: 3}
m_Sprite: {fileID: 21300000, guid: a40909543a92f234399ecd9f72def59d, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
......@@ -6880,7 +6880,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6064464677866441003}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
......@@ -6934,7 +6934,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6064464677866441003}
m_Enabled: 1
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a8ba38326c7546e449f8c538a5c9b48f, type: 3}
m_Name:
......@@ -9541,7 +9541,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 6
m_Text: '?'
--- !u!1 &6598198701575155059
GameObject:
m_ObjectHideFlags: 0
......@@ -10145,7 +10145,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 7
m_Text: '?'
--- !u!1 &6598198701691947572
GameObject:
m_ObjectHideFlags: 0
......@@ -10237,7 +10237,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &6598198701825853662
RectTransform:
m_ObjectHideFlags: 0
......@@ -11827,7 +11827,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &6598198702637423844
RectTransform:
m_ObjectHideFlags: 0
......
......@@ -10,7 +10,7 @@ GameObject:
m_Component:
- component: {fileID: 6343910780052995144}
- component: {fileID: 2065023536690103948}
- component: {fileID: 4229059551681026877}
- component: {fileID: 3377637630895402974}
m_Layer: 8
m_Name: magnet
m_TagString: Untagged
......@@ -45,7 +45,7 @@ SphereCollider:
serializedVersion: 2
m_Radius: 0.6
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &4229059551681026877
--- !u!114 &3377637630895402974
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
......@@ -54,7 +54,7 @@ MonoBehaviour:
m_GameObject: {fileID: 2931525949271872164}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7aa9cd085e519b545b88a1e2def2d692, type: 3}
m_Script: {fileID: 11500000, guid: 36894c5933a000a4c8c535683dba6c65, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &2986675907246666288
......@@ -287,7 +287,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8977900385761036646}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -2.888, y: 1.531, z: 0.46822}
m_LocalPosition: {x: -2.9, y: 1.531, z: 0.46822}
m_LocalScale: {x: 1, y: 0.5118, z: 1}
m_Children:
- {fileID: 5041089129542579046}
......
......@@ -607,7 +607,7 @@ GameObject:
- component: {fileID: 4053580056330658240}
- component: {fileID: 7132143057902326427}
m_Layer: 0
m_Name: Level0
m_Name: Level01
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
......@@ -1267,11 +1267,6 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 4053580056445237778}
m_Modifications:
- target: {fileID: 2223166408088548867, guid: 54c939b922ce3e742b9aecc128cdd154,
type: 3}
propertyPath: m_LocalPosition.x
value: -2.9
objectReference: {fileID: 0}
- target: {fileID: 2986675907246666288, guid: 54c939b922ce3e742b9aecc128cdd154,
type: 3}
propertyPath: m_Name
......@@ -1580,7 +1575,7 @@ PrefabInstance:
- target: {fileID: 5063288113430786112, guid: 026b5780346325e4b98d62d9430fe8e1,
type: 3}
propertyPath: linkInstances.Array.size
value: 108
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5063288113430786112, guid: 026b5780346325e4b98d62d9430fe8e1,
type: 3}
......
......@@ -6339,34 +6339,6 @@ Rigidbody:
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!54 &3444130328054405564
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2585293414878225751}
serializedVersion: 2
m_Mass: 1
m_Drag: 10
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 120
m_CollisionDetection: 0
--- !u!114 &3238839523319634227
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2585293414878225751}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a2be9d8415dce84daf5f1b6b777d5bd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &490418853119021135
GameObject:
m_ObjectHideFlags: 0
......@@ -13551,6 +13523,34 @@ Transform:
m_Father: {fileID: 2585293415302331275}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!54 &3444130328054405564
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2585293414878225751}
serializedVersion: 2
m_Mass: 1
m_Drag: 10
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 120
m_CollisionDetection: 0
--- !u!114 &3238839523319634227
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2585293414878225751}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a2be9d8415dce84daf5f1b6b777d5bd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &2585293414950088119
GameObject:
m_ObjectHideFlags: 0
......@@ -13636,7 +13636,7 @@ MonoBehaviour:
m_chainRopeView: {fileID: 0}
m_chainHandle: {fileID: 3238839523319634227}
m_camera: {fileID: 0}
curLevelIndex: 1
curLevelIndex: 2
--- !u!1 &2585293415345015387
GameObject:
m_ObjectHideFlags: 0
......
......@@ -5545,6 +5545,34 @@ Transform:
m_Father: {fileID: 7338952966667414925}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!54 &7635288251310788538
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7338952965756810065}
serializedVersion: 2
m_Mass: 1
m_Drag: 10
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 120
m_CollisionDetection: 0
--- !u!114 &7695340174472154933
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7338952965756810065}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a2be9d8415dce84daf5f1b6b777d5bd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &7338952965778275249
GameObject:
m_ObjectHideFlags: 0
......@@ -6127,7 +6155,7 @@ MonoBehaviour:
m_chainRopeView: {fileID: 0}
m_chainHandle: {fileID: 7695340174472154933}
m_camera: {fileID: 0}
curLevelIndex: 1
curLevelIndex: 3
--- !u!1 &7338952966760111197
GameObject:
m_ObjectHideFlags: 0
......@@ -6273,34 +6301,6 @@ Rigidbody:
m_Interpolate: 0
m_Constraints: 56
m_CollisionDetection: 0
--- !u!54 &7635288251310788538
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7338952965756810065}
serializedVersion: 2
m_Mass: 1
m_Drag: 10
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 120
m_CollisionDetection: 0
--- !u!114 &7695340174472154933
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7338952965756810065}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a2be9d8415dce84daf5f1b6b777d5bd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &7421100814300355228
GameObject:
m_ObjectHideFlags: 0
......
......@@ -1005,34 +1005,6 @@ Rigidbody:
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!54 &3764952696080104432
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4040573734206883611}
serializedVersion: 2
m_Mass: 1
m_Drag: 10
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 120
m_CollisionDetection: 0
--- !u!114 &3963560938386471807
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4040573734206883611}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a2be9d8415dce84daf5f1b6b777d5bd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1871120857907397383
GameObject:
m_ObjectHideFlags: 0
......@@ -4320,6 +4292,34 @@ Transform:
m_Father: {fileID: 4040573733812686658}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!54 &3764952696080104432
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4040573734206883611}
serializedVersion: 2
m_Mass: 1
m_Drag: 10
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 120
m_CollisionDetection: 0
--- !u!114 &3963560938386471807
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4040573734206883611}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6a2be9d8415dce84daf5f1b6b777d5bd, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &4040573734231294484
GameObject:
m_ObjectHideFlags: 0
......@@ -4841,7 +4841,7 @@ MonoBehaviour:
m_chainRopeView: {fileID: 0}
m_chainHandle: {fileID: 3963560938386471807}
m_camera: {fileID: 0}
curLevelIndex: 1
curLevelIndex: 4
--- !u!1001 &1871120857418378013
PrefabInstance:
m_ObjectHideFlags: 0
......
......@@ -138,6 +138,7 @@
<None Include="Assets\0E1_Plugins\Obi\Editor\Resources\UVSpaceColor.shader" />
<None Include="Assets\0E1_Plugins\Obi\Editor\Resources\DistanceFieldPreview.shader" />
<None Include="Assets\0E1_Plugins\Obi\Editor\Resources\TopologyBorders.shader" />
<None Include="Assets\0E1_Plugins\Obi\Editor\Obi.Editor.asmdef" />
<None Include="Assets\0E1_Plugins\Obi\Editor\Resources\PaddingShader.shader" />
<Reference Include="UnityEngine">
<HintPath>D:/wan/unity2019.3.14path/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll</HintPath>
......@@ -340,12 +341,12 @@
<Reference Include="SyntaxTree.VisualStudio.Unity.Bridge">
<HintPath>C:/Program Files (x86)/Microsoft Visual Studio Tools for Unity/16.0/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll</HintPath>
</Reference>
<Reference Include="DOTweenEditor">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Assets/Plugins/DOTween/Editor/DOTweenEditor.dll</HintPath>
</Reference>
<Reference Include="DOTween">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Assets/Plugins/DOTween/DOTween.dll</HintPath>
</Reference>
<Reference Include="DOTweenEditor">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Assets/Plugins/DOTween/Editor/DOTweenEditor.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Library/PackageCache/com.unity.ext.nunit@1.0.0/net35/unity-custom/nunit.framework.dll</HintPath>
</Reference>
......
......@@ -365,6 +365,7 @@
<Compile Include="Assets\0E1_Plugins\Obi\Scripts\RopeAndRod\Rendering\ObiRopeMeshRenderer.cs" />
<Compile Include="Assets\0E1_Plugins\Obi\Scripts\RopeAndRod\Utils\ObiRopeAttach.cs" />
<Compile Include="Assets\0E1_Plugins\Obi\Scripts\RopeAndRod\Utils\ObiRopePrefabPlugger.cs" />
<None Include="Assets\0E1_Plugins\Obi\Scripts\Obi.asmdef" />
<Reference Include="UnityEngine">
<HintPath>D:/wan/unity2019.3.14path/Unity/Editor/Data/Managed/UnityEngine/UnityEngine.dll</HintPath>
</Reference>
......@@ -566,12 +567,12 @@
<Reference Include="SyntaxTree.VisualStudio.Unity.Bridge">
<HintPath>C:/Program Files (x86)/Microsoft Visual Studio Tools for Unity/16.0/Editor/SyntaxTree.VisualStudio.Unity.Bridge.dll</HintPath>
</Reference>
<Reference Include="DOTweenEditor">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Assets/Plugins/DOTween/Editor/DOTweenEditor.dll</HintPath>
</Reference>
<Reference Include="DOTween">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Assets/Plugins/DOTween/DOTween.dll</HintPath>
</Reference>
<Reference Include="DOTweenEditor">
<HintPath>D:/wan/dyspaceGame/SteelBall/SteelBall/Assets/Plugins/DOTween/Editor/DOTweenEditor.dll</HintPath>
</Reference>
<Reference Include="netstandard">
<HintPath>D:/wan/unity2019.3.14path/Unity/Editor/Data/NetStandard/ref/2.0.0/netstandard.dll</HintPath>
</Reference>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment