Commit 6a854dcc authored by Michael But's avatar Michael But
Browse files

Kleine Änderungen an SavePoint Script und Prefab für die SavePoints angelegt.

parent 062b729a
fileFormatVersion: 2
guid: f269cf4fe2b91024083d105b25622a8e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &395035932932740994
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 395035932932740992}
- component: {fileID: 395035932932740995}
- component: {fileID: 395035932932740993}
m_Layer: 0
m_Name: SavePoint
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &395035932932740992
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 395035932932740994}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -6.34, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!58 &395035932932740995
CircleCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 395035932932740994}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
serializedVersion: 2
m_Radius: 1.39
--- !u!114 &395035932932740993
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 395035932932740994}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9627da6bb4534054e8a7065f1c4974f3, type: 3}
m_Name:
m_EditorClassIdentifier:
fileFormatVersion: 2
guid: 3ff4cf871f5edaa40b0530c80a9ff9df
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -112,66 +112,75 @@ NavMeshSettings:
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &533869316
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 533869318}
- component: {fileID: 533869317}
- component: {fileID: 533869319}
m_Layer: 0
m_Name: SavePoint
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!58 &533869317
CircleCollider2D:
--- !u!1001 &726887643
PrefabInstance:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 533869316}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
serializedVersion: 2
m_Radius: 1.39
--- !u!4 &533869318
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 533869316}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -6.34, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &533869319
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 533869316}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9627da6bb4534054e8a7065f1c4974f3, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 395035932932740994, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_Name
value: SavePoint (2)
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalPosition.x
value: -0.6338824
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.023614883
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalPosition.z
value: -22.677734
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 3ff4cf871f5edaa40b0530c80a9ff9df, type: 3}
--- !u!1 &1428709948
GameObject:
m_ObjectHideFlags: 0
......@@ -290,7 +299,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!50 &1428709954
Rigidbody2D:
......@@ -313,6 +322,75 @@ Rigidbody2D:
m_SleepingMode: 1
m_CollisionDetection: 0
m_Constraints: 0
--- !u!1001 &1456034893
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 395035932932740994, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_Name
value: SavePoint (1)
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalPosition.x
value: 5.1062307
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalPosition.y
value: -0.12993002
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalPosition.z
value: -22.677734
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 3ff4cf871f5edaa40b0530c80a9ff9df, type: 3}
--- !u!1 &1817897560
GameObject:
m_ObjectHideFlags: 0
......@@ -380,7 +458,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &1826260685
GameObject:
......@@ -464,63 +542,72 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1990119847
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1990119850}
- component: {fileID: 1990119849}
- component: {fileID: 1990119848}
m_Layer: 0
m_Name: SavePoint (1)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1990119848
MonoBehaviour:
--- !u!1001 &395035933204456582
PrefabInstance:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1990119847}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9627da6bb4534054e8a7065f1c4974f3, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!58 &1990119849
CircleCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1990119847}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
serializedVersion: 2
m_Radius: 1.39
--- !u!4 &1990119850
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1990119847}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 5.4, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 395035932932740994, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_Name
value: SavePoint
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalPosition.x
value: -6.34
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 395035932932740992, guid: 3ff4cf871f5edaa40b0530c80a9ff9df,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 3ff4cf871f5edaa40b0530c80a9ff9df, type: 3}
......@@ -7,7 +7,7 @@ public class SavePoint : MonoBehaviour
{
public void OnTriggerStay2D(Collider2D collision)
{
if (Input.GetKey("down"))
if (Input.GetButtonDown("Interact"))
{
SaveSystem.SavePointUpdate(this);
}
......
......@@ -37,4 +37,14 @@ public class SaveSystem
return null;
}
}
public static void LoadScene()
{
}
public static void NewGame()
{
}
}
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