started implementing game logic

master
beni-T-52 2022-05-09 19:15:12 +02:00
parent 10e3ab6dd2
commit f60c507593
3 changed files with 22 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@ -13,6 +13,6 @@ MonoBehaviour:
m_Name: StonetileStateMachine
m_EditorClassIdentifier:
_data:
_json: '{"graph":{"title":null,"summary":null,"pan":{"x":208.0,"y":35.25},"zoom":0.9,"elements":[{"nest":{"source":"Embed","macro":null,"embed":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"Normal","summary":null,"pan":{"x":0.0,"y":0.0},"zoom":1.0,"elements":[{"coroutine":false,"defaultValues":{},"position":{"x":-205.0,"y":-215.0},"guid":"3b040b1f-01c4-4e2c-b0eb-e7c2eeef4d4e","$version":"A","$type":"Bolt.OnEnterState"},{"coroutine":false,"defaultValues":{},"position":{"x":-205.0,"y":145.0},"guid":"43f211f4-a0af-4eb2-9189-369ac9dee611","$version":"A","$type":"Bolt.OnExitState"}],"$version":"A"}},"isStart":true,"position":{"x":-305.0,"y":1.0},"width":170.0,"guid":"90bfeb2c-6282-48f6-97f3-911a16d76f7c","$version":"A","$type":"Bolt.FlowState"},{"nest":{"source":"Embed","macro":null,"embed":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"pressed
Down","summary":null,"pan":{"x":-114.6436,"y":-46.42422},"zoom":0.55,"elements":[{"coroutine":false,"defaultValues":{},"position":{"x":-205.0,"y":-215.0},"guid":"74ea6399-4f72-45c5-bffb-288ebc5cc1e9","$version":"A","$type":"Bolt.OnEnterState"},{"coroutine":false,"defaultValues":{},"position":{"x":-205.0,"y":145.0},"guid":"9e91ddd2-1b31-4a88-8128-7a3b7f6553b0","$version":"A","$type":"Bolt.OnExitState"}],"$version":"A"}},"isStart":false,"position":{"x":263.0,"y":-6.0},"width":170.0,"guid":"d1439ec0-b9c3-4404-bcf8-9369c5706249","$version":"A","$type":"Bolt.FlowState"}],"$version":"A"}}'
_json: '{"graph":{"title":null,"summary":null,"pan":{"x":113.0,"y":36.0},"zoom":1.0,"elements":[{"nest":{"source":"Embed","macro":null,"embed":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"Normal","summary":null,"pan":{"x":0.0,"y":0.0},"zoom":1.0,"elements":[{"coroutine":false,"defaultValues":{},"position":{"x":-205.0,"y":-215.0},"guid":"3b040b1f-01c4-4e2c-b0eb-e7c2eeef4d4e","$version":"A","$type":"Bolt.OnEnterState"},{"coroutine":false,"defaultValues":{},"position":{"x":-252.0,"y":-34.0},"guid":"43f211f4-a0af-4eb2-9189-369ac9dee611","$version":"A","$type":"Bolt.OnExitState","$id":"15"},{"kind":"Scene","defaultValues":{"name":{"$content":"StoneTilePressed","$type":"System.String"}},"position":{"x":66.0,"y":-13.0},"guid":"983dbe22-318e-4e40-9ea0-b34b03f54016","$version":"A","$type":"Bolt.SetVariable","$id":"17"},{"type":"System.Boolean","value":{"$content":true,"$type":"System.Boolean"},"defaultValues":{},"position":{"x":-216.0,"y":130.0},"guid":"20d1ad7c-a883-49ea-8b81-da93950dc696","$version":"A","$type":"Bolt.Literal","$id":"19"},{"sourceUnit":{"$ref":"15"},"sourceKey":"trigger","destinationUnit":{"$ref":"17"},"destinationKey":"assign","guid":"18b80b8b-1fda-4ef6-b6e2-aacc0683d047","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"19"},"sourceKey":"output","destinationUnit":{"$ref":"17"},"destinationKey":"input","guid":"23821a7b-c90d-4731-9b29-afa58bd00fff","$type":"Bolt.ValueConnection"}],"$version":"A"}},"isStart":true,"position":{"x":-208.0,"y":-5.0},"width":170.0,"guid":"90bfeb2c-6282-48f6-97f3-911a16d76f7c","$version":"A","$type":"Bolt.FlowState","$id":"3"},{"nest":{"source":"Embed","macro":null,"embed":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"pressed
Down","summary":null,"pan":{"x":-96.93169,"y":-23.93219},"zoom":0.9500001,"elements":[{"coroutine":false,"defaultValues":{},"position":{"x":-205.0,"y":-215.0},"guid":"74ea6399-4f72-45c5-bffb-288ebc5cc1e9","$version":"A","$type":"Bolt.OnEnterState"},{"coroutine":false,"defaultValues":{},"position":{"x":-332.0,"y":-8.0},"guid":"9e91ddd2-1b31-4a88-8128-7a3b7f6553b0","$version":"A","$type":"Bolt.OnExitState","$id":"35"},{"kind":"Scene","defaultValues":{"name":{"$content":"StoneTilePressed","$type":"System.String"}},"position":{"x":19.0,"y":-5.0},"guid":"cb796eab-bbe8-4f87-9775-47b475c927d2","$version":"A","$type":"Bolt.SetVariable","$id":"37"},{"type":"System.Boolean","value":{"$content":false,"$type":"System.Boolean"},"defaultValues":{},"position":{"x":-192.0,"y":167.0},"guid":"75a3d9b4-8ae3-4aac-bb79-82164aca385b","$version":"A","$type":"Bolt.Literal","$id":"39"},{"sourceUnit":{"$ref":"35"},"sourceKey":"trigger","destinationUnit":{"$ref":"37"},"destinationKey":"assign","guid":"ff55f776-bc98-4ce2-82da-67e0866738c9","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"39"},"sourceKey":"output","destinationUnit":{"$ref":"37"},"destinationKey":"input","guid":"a002659c-bf9e-4bf2-a64b-7ec331d309c7","$type":"Bolt.ValueConnection"}],"$version":"A"}},"isStart":false,"position":{"x":263.0,"y":-6.0},"width":170.0,"guid":"d1439ec0-b9c3-4404-bcf8-9369c5706249","$version":"A","$type":"Bolt.FlowState","$id":"23"},{"nest":{"source":"Embed","macro":null,"embed":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":null,"summary":null,"pan":{"x":-43.80293,"y":0.1653484},"zoom":0.9,"elements":[{"defaultValues":{},"position":{"x":100.0,"y":-50.0},"guid":"2263167e-2bb5-4524-803b-63a0a6a3d788","$version":"A","$type":"Bolt.TriggerStateTransition","$id":"53"},{"coroutine":false,"defaultValues":{"target":null},"position":{"x":-409.0,"y":-100.0},"guid":"29415aab-3102-402a-8b85-e50bccbfa92b","$version":"A","$type":"Bolt.OnCollisionStay","$id":"55"},{"sourceUnit":{"$ref":"55"},"sourceKey":"trigger","destinationUnit":{"$ref":"53"},"destinationKey":"trigger","guid":"15dc2121-5eb3-4266-9fb2-9b0addbcb9e2","$type":"Bolt.ControlConnection"}],"$version":"A"}},"source":{"$ref":"3"},"destination":{"$ref":"23"},"guid":"ec80d1aa-4ed3-47e9-b53f-52af46f602d6","$version":"A","$type":"Bolt.FlowStateTransition"},{"nest":{"source":"Embed","macro":null,"embed":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":null,"summary":null,"pan":{"x":0.0,"y":0.0},"zoom":1.0,"elements":[{"defaultValues":{},"position":{"x":100.0,"y":-50.0},"guid":"72ac21ae-d0cb-4c5e-9825-6c89d82755a9","$version":"A","$type":"Bolt.TriggerStateTransition","$id":"68"},{"coroutine":false,"defaultValues":{"target":null},"position":{"x":-348.0,"y":-123.0},"guid":"d98ecbcc-60db-43ac-bf98-66f0aa764c3d","$version":"A","$type":"Bolt.OnCollisionExit","$id":"70"},{"sourceUnit":{"$ref":"70"},"sourceKey":"trigger","destinationUnit":{"$ref":"68"},"destinationKey":"trigger","guid":"cc2f8464-e2d2-4f7e-a994-5a0c23bc40a0","$type":"Bolt.ControlConnection"}],"$version":"A"}},"source":{"$ref":"23"},"destination":{"$ref":"3"},"guid":"e4ca765e-fe0e-4fea-9c82-a24f63483f9d","$version":"A","$type":"Bolt.FlowStateTransition"}],"$version":"A"}}'
_objectReferences: []

View File

@ -1374,8 +1374,8 @@ Rigidbody:
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!136 &123432291
CapsuleCollider:
--- !u!65 &123432291
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
@ -1384,10 +1384,9 @@ CapsuleCollider:
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
m_Radius: 0.45513964
m_Height: 0.84520924
m_Direction: 1
m_Center: {x: 0.021012872, y: 0.029108178, z: 0.45123515}
serializedVersion: 2
m_Size: {x: 0.5261159, y: 0.4839555, z: 0.9102793}
m_Center: {x: -0.015820742, y: 0.010246665, z: 0.45124617}
--- !u!1001 &139362699
PrefabInstance:
m_ObjectHideFlags: 0
@ -14760,6 +14759,19 @@ MonoBehaviour:
_json: '{"nest":{"source":"Macro","macro":0,"embed":null}}'
_objectReferences:
- {fileID: 11400000, guid: e4a933a3464986b41a7a033cc434e549, type: 2}
--- !u!65 &1229177891
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1229177886}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 2.0715618, y: 2.0855494, z: 0.2}
m_Center: {x: -0.004296303, y: -0.0009363146, z: 0.99}
--- !u!1 &1229887433 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: cffe1e828c59eb644ae9b6e8407d05bd, type: 3}
@ -18314,7 +18326,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2129167813}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 4.342, y: 8.67, z: 4.86}
m_LocalPosition: {x: 4.14, y: 8.67, z: 4.86}
m_LocalScale: {x: 3.0253, y: 2.2208, z: 0.32081}
m_Children: []
m_Father: {fileID: 1192080123}