您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
23 行
7.4 KiB
23 行
7.4 KiB
%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: -1893448595, guid: a040fb66244a7f54289914d98ea4ef7d, type: 3}
|
|
m_Name: Obstacle_Behavior_ER
|
|
m_EditorClassIdentifier:
|
|
_data:
|
|
_json: '{"graph":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"Obstacle
|
|
Behavior","summary":"Movement & reset behavior for the obstacle","pan":{"x":699.8354,"y":405.0529},"zoom":0.3275547,"elements":[{"chainable":false,"member":{"name":".ctor","parameterTypes":["System.Single","System.Single","System.Single"],"targetType":"UnityEngine.Vector3","targetTypeName":"UnityEngine.Vector3","$version":"A"},"defaultValues":{"%x":{"$content":15.0,"$type":"System.Single"},"%y":{"$content":0.0,"$type":"System.Single"},"%z":{"$content":0.0,"$type":"System.Single"}},"position":{"x":188.0,"y":681.0},"guid":"eb47e430-ec4e-488e-be1a-c00ad6c8f202","$version":"A","$type":"Bolt.InvokeMember","$id":"9"},{"chainable":false,"member":{"name":"velocity","parameterTypes":null,"targetType":"UnityEngine.Rigidbody2D","targetTypeName":"UnityEngine.Rigidbody2D","$version":"A"},"defaultValues":{"target":null,"input":{"x":0.0,"y":0.0,"$type":"UnityEngine.Vector2"}},"position":{"x":122.0,"y":-47.0},"guid":"ef5a8d61-c21f-4ee8-bf32-0c7c2d282b1f","$version":"A","$type":"Bolt.SetMember","$id":"12"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"minHeight","$type":"System.String"},"object":null},"position":{"x":-162.0,"y":675.0},"guid":"6cc6d7b0-fb24-49cc-8daa-5afa6cfe26c2","$version":"A","$type":"Bolt.GetVariable","$id":"15"},{"coroutine":false,"defaultValues":{"target":null},"position":{"x":-164.0,"y":315.0},"guid":"3c9efbc2-3211-4434-bfd2-b8401d3e054f","$version":"A","$type":"Bolt.OnTriggerEnter2D","$id":"17"},{"chainable":false,"member":{"name":".ctor","parameterTypes":["System.Single","System.Single"],"targetType":"UnityEngine.Vector2","targetTypeName":"UnityEngine.Vector2","$version":"A"},"defaultValues":{"%x":{"$content":0.0,"$type":"System.Single"},"%y":{"$content":0.0,"$type":"System.Single"}},"position":{"x":-15.0,"y":45.0},"guid":"12906df2-7190-48ee-b69a-0e36aa9138b2","$version":"A","$type":"Bolt.InvokeMember","$id":"19"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"speed","$type":"System.String"},"object":null},"position":{"x":-187.0,"y":62.0},"guid":"dbaf6489-aa9b-4a61-b51a-e9ddbbacfc85","$version":"A","$type":"Bolt.GetVariable","$id":"22"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"maxHeight","$type":"System.String"},"object":null},"position":{"x":-166.0,"y":799.0},"guid":"83699d5a-d2e4-4a24-b5a2-94dcbbc3d70b","$version":"A","$type":"Bolt.GetVariable","$id":"24"},{"chainable":false,"member":{"name":"Range","parameterTypes":["System.Single","System.Single"],"targetType":"UnityEngine.Random","targetTypeName":"UnityEngine.Random","$version":"A"},"defaultValues":{"%min":{"$content":-4.0,"$type":"System.Single"},"%max":{"$content":1.0,"$type":"System.Single"}},"position":{"x":29.0,"y":703.0},"guid":"7821bef6-263f-4c7d-9927-f9c29f85bc60","$version":"A","$type":"Bolt.InvokeMember","$id":"26"},{"chainable":false,"member":{"name":"position","parameterTypes":null,"targetType":"UnityEngine.Transform","targetTypeName":"UnityEngine.Transform","$version":"A"},"defaultValues":{"target":null,"input":{"x":0.0,"y":0.0,"z":0.0,"$type":"UnityEngine.Vector3"}},"position":{"x":323.0,"y":422.0},"guid":"ef141dd3-fe26-4866-91e1-383b2c5c75f8","$version":"A","$type":"Bolt.SetMember","$id":"29"},{"nest":{"source":"Macro","macro":0,"embed":null},"defaultValues":{},"position":{"x":77.0,"y":363.0},"guid":"6a24128d-525f-4b88-8194-dc8bddb57fa6","$version":"A","$type":"Bolt.SuperUnit","$id":"32"},{"type":"System.String","value":{"$content":"BarrierL","$type":"System.String"},"defaultValues":{},"position":{"x":-85.0,"y":433.0},"guid":"cad27abf-27d1-445e-bb55-2050e4a961c1","$version":"A","$type":"Bolt.Literal","$id":"35"},{"coroutine":false,"defaultValues":{},"position":{"x":-187.0,"y":-49.0},"guid":"c878b661-a63c-4825-87de-4d2bff3c997b","$version":"A","$type":"Bolt.FixedUpdate","$id":"37"},{"sourceUnit":{"$ref":"37"},"sourceKey":"trigger","destinationUnit":{"$ref":"12"},"destinationKey":"assign","guid":"6f714e58-8448-47ee-aa3b-df495cfbf9df","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"32"},"sourceKey":"Exit","destinationUnit":{"$ref":"29"},"destinationKey":"assign","guid":"a2b394bb-d3c5-4802-bb3a-1542442dbc12","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"trigger","destinationUnit":{"$ref":"32"},"destinationKey":"Enter","guid":"780e9b33-b259-4ec4-bcef-f95bbd401b40","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"24"},"sourceKey":"value","destinationUnit":{"$ref":"26"},"destinationKey":"%max","guid":"3f8ee268-4117-47c5-86b6-f9fa47941c7e","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"26"},"sourceKey":"result","destinationUnit":{"$ref":"9"},"destinationKey":"%y","guid":"7dacbe37-061b-494f-9974-37038945c20c","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"22"},"sourceKey":"value","destinationUnit":{"$ref":"19"},"destinationKey":"%x","guid":"2cc66575-a0e5-442e-95a2-90c9a2371e62","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"35"},"sourceKey":"output","destinationUnit":{"$ref":"32"},"destinationKey":"Tag","guid":"50d03c7d-3c17-43c4-93b1-33d96bef9c71","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"collider","destinationUnit":{"$ref":"32"},"destinationKey":"Collider","guid":"32a243a4-54c7-4293-9a59-199784184542","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"15"},"sourceKey":"value","destinationUnit":{"$ref":"26"},"destinationKey":"%min","guid":"1617d878-6e0e-487a-bfa4-c54cacdba997","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"result","destinationUnit":{"$ref":"29"},"destinationKey":"input","guid":"a6e8aa02-a185-4082-91b4-8a8760259343","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"19"},"sourceKey":"result","destinationUnit":{"$ref":"12"},"destinationKey":"input","guid":"e8a48224-756f-4394-b52d-938c1e9ececf","$type":"Bolt.ValueConnection"},{"position":{"xMin":-236.0,"yMin":-121.0,"xMax":288.0,"yMax":209.0},"label":"Set
|
|
a constant velocity for the Obstacle to keep it moving left.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"54d4e8c6-be7e-4ce5-b0a9-928bd5c83a84","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-239.0,"yMin":621.0,"xMax":408.0,"yMax":925.0},"label":"Create
|
|
a set of coordinates with a random Y value to determine Obstacle''s reset position
|
|
& height.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"f1330edc-0743-49f1-acaf-22a381c47552","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-240.9691,"yMin":262.7789,"xMax":541.587,"yMax":570.1796},"label":"Reset
|
|
Obstacle''s position when it collides with Left Barrier.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"31d08842-749a-45e4-ba99-d0e5cb5ba3ba","$version":"A","$type":"Ludiq.GraphGroup"}],"$version":"A"}}'
|
|
_objectReferences:
|
|
- {fileID: 11400000, guid: 966bf79364dd5a141b97fefdaa4fa1b4, type: 2}
|