您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
37 行
18 KiB
37 行
18 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: CrateSwitch
|
|
m_EditorClassIdentifier:
|
|
_data:
|
|
_json: '{"graph":{"variables":{"collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[{"key":"Enter","label":null,"summary":null,"hideLabel":false}],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"Crate
|
|
Switch","summary":"Changes the materials of the crates when the player collides
|
|
with the game object this graph is added to.","pan":{"x":-1291.5,"y":314.0},"zoom":1.0,"elements":[{"nest":{"source":"Embed","macro":null,"embed":{"variables":{"collection":{"$content":[{"name":"crates","value":{"$content":[],"$type":"System.Collections.Generic.List`1[[UnityEngine.GameObject,
|
|
UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"},"$version":"A"},{"name":"CrateSwitchMaterials","value":{"$content":[0,1],"$type":"System.Collections.Generic.List`1[[UnityEngine.Material,
|
|
UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"},"$version":"A"}],"$version":"A"},"$version":"A"},"controlInputDefinitions":[{"key":"Enter","label":null,"summary":null,"hideLabel":false}],"controlOutputDefinitions":[{"key":"Exit","label":null,"summary":null,"hideLabel":false}],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"CubeWarp","summary":"Changes
|
|
crate materials and applies force to the crates.","pan":{"x":170.4567,"y":-4.205795},"zoom":0.25,"elements":[{"defaultValues":{},"position":{"x":-1003.0,"y":-296.0},"guid":"211a1d42-1114-49b4-915e-4df83cbb225e","$version":"A","$type":"Bolt.GraphInput","$id":"26"},{"dictionary":false,"defaultValues":{},"position":{"x":-100.0,"y":-105.0},"guid":"775f2692-7877-4f63-a8c4-c905612975c7","$version":"A","$type":"Bolt.ForEach","$id":"28"},{"specifyFallback":false,"kind":"Graph","defaultValues":{"name":{"$content":"CrateSwitchMaterials","$type":"System.String"}},"position":{"x":160.0,"y":-178.0},"guid":"3e92ff4f-822d-441d-8e54-8d8910ab50af","$version":"A","$type":"Bolt.GetVariable","$id":"30"},{"chainable":false,"member":{"name":"materials","parameterTypes":null,"targetType":"UnityEngine.Renderer","targetTypeName":"UnityEngine.Renderer","$version":"A"},"defaultValues":{"target":null},"position":{"x":400.0,"y":-76.0},"guid":"00a13493-6e93-4cab-8768-65c9d454da3d","$version":"A","$type":"Bolt.SetMember","$id":"32"},{"chainable":false,"member":{"name":"AddForce","parameterTypes":["UnityEngine.Vector3","UnityEngine.ForceMode"],"targetType":"UnityEngine.Rigidbody","targetTypeName":"UnityEngine.Rigidbody","$version":"A"},"defaultValues":{"target":null,"%force":{"x":0.0,"y":10.0,"z":0.0,"$type":"UnityEngine.Vector3"},"%mode":{"$content":"Force","$type":"UnityEngine.ForceMode"}},"position":{"x":937.0,"y":397.0},"guid":"3545562b-9131-45d9-b626-82ec2ae72c7b","$version":"A","$type":"Bolt.InvokeMember","$id":"35"},{"chainable":false,"member":{"name":"FindGameObjectsWithTag","parameterTypes":["System.String"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"%tag":{"$content":"Crate","$type":"System.String"}},"position":{"x":-858.0,"y":-308.0},"guid":"1b2d9e5a-f7b8-4397-adf5-f83262e1a70f","$version":"A","$type":"Bolt.InvokeMember","$id":"38"},{"kind":"Graph","defaultValues":{"name":{"$content":"crates","$type":"System.String"}},"position":{"x":-568.0,"y":-318.0},"guid":"f0717233-d41f-4476-9137-cfe65fc904c0","$version":"A","$type":"Bolt.SetVariable","$id":"41"},{"defaultValues":{},"position":{"x":1136.0,"y":397.0},"guid":"43e342b4-356b-421b-b33b-fe8875a7c572","$version":"A","$type":"Bolt.GraphOutput","$id":"43"},{"chainable":false,"member":{"name":"GetComponent","parameterTypes":["System.Type"],"targetType":"UnityEngine.Component","targetTypeName":"UnityEngine.Component","$version":"A"},"defaultValues":{"target":null,"%type":{"$content":"UnityEngine.MeshRenderer","$type":"System.RuntimeType"}},"position":{"x":91.0,"y":-78.0},"guid":"1c46bcb3-6e89-4955-a46d-12d0737ac8be","$version":"A","$type":"Bolt.InvokeMember","$id":"45"},{"sourceUnit":{"$ref":"26"},"sourceKey":"Enter","destinationUnit":{"$ref":"38"},"destinationKey":"enter","guid":"855ed978-0164-415f-aa2e-6092df25d6a1","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"45"},"sourceKey":"exit","destinationUnit":{"$ref":"32"},"destinationKey":"assign","guid":"dcfdd080-c9c2-4ae6-acc2-1a6034f19047","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"35"},"sourceKey":"exit","destinationUnit":{"$ref":"43"},"destinationKey":"Exit","guid":"b0c83798-b95f-4a98-a55f-0eb5d725a980","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"41"},"sourceKey":"assigned","destinationUnit":{"$ref":"28"},"destinationKey":"enter","guid":"163ea996-bcfa-4f19-b1bc-d73eaa4a9519","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"28"},"sourceKey":"body","destinationUnit":{"$ref":"45"},"destinationKey":"enter","guid":"918f2495-8083-4331-bbef-17519bd30ec1","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"32"},"sourceKey":"assigned","destinationUnit":{"$ref":"35"},"destinationKey":"enter","guid":"95f187cc-471c-40b8-a64a-fd3f6848e5d3","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"38"},"sourceKey":"exit","destinationUnit":{"$ref":"41"},"destinationKey":"assign","guid":"2d92d6b1-7ded-4a78-8da4-b3e736d0c526","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"30"},"sourceKey":"value","destinationUnit":{"$ref":"32"},"destinationKey":"input","guid":"0d1aff55-402e-4094-9af8-693f6d051a5f","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"45"},"sourceKey":"result","destinationUnit":{"$ref":"32"},"destinationKey":"target","guid":"5dc8036b-13f7-418e-b317-f7800498f929","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"28"},"sourceKey":"currentItem","destinationUnit":{"$ref":"45"},"destinationKey":"target","guid":"c58f9f64-170f-47dc-a0df-e7a0e21cddfe","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"41"},"sourceKey":"output","destinationUnit":{"$ref":"28"},"destinationKey":"collection","guid":"750365c9-9a24-46e3-a6e5-f4d50a0ab69d","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"28"},"sourceKey":"currentItem","destinationUnit":{"$ref":"35"},"destinationKey":"target","guid":"28316b18-c618-4566-afa2-44651dd194b8","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"38"},"sourceKey":"result","destinationUnit":{"$ref":"41"},"destinationKey":"input","guid":"aba20747-2757-497d-9189-e79696f88738","$type":"Bolt.ValueConnection"},{"position":{"xMin":-877.0,"yMin":-451.0,"xMax":-422.0,"yMax":-147.0},"label":"Find
|
|
all game objects in the scene with the \"Crate\" tag & add them to a List.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"162ba7f2-e78a-48ac-8b3c-80eeb0322292","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-208.0,"yMin":-315.7778,"xMax":867.5557,"yMax":93.66672},"label":"For
|
|
every object in the list, apply the materials we have stored in our CreateSwitchMaterials
|
|
list variable.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"7366aa50-def0-4a83-b2d0-e4339a836840","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":853.0,"yMin":312.0,"xMax":1457.0,"yMax":586.0},"label":"Add
|
|
force to all game objects in the List to levitate them, then exit the Super
|
|
Unit.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"0e9a2a13-ba8d-428e-91e4-894ce560e6b1","$version":"A","$type":"Ludiq.GraphGroup"}],"$version":"A"}},"defaultValues":{},"position":{"x":-1070.0,"y":-165.0},"guid":"0b0d11d0-29fa-40a6-befe-32965271e333","$version":"A","$type":"Bolt.SuperUnit","$id":"10"},{"chainable":false,"member":{"name":"SetActive","parameterTypes":["System.Boolean"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"target":null,"%value":{"$content":false,"$type":"System.Boolean"}},"position":{"x":-1168.0,"y":278.0},"guid":"15e9bf4c-d17b-4100-960e-c4ca9aa0794e","$version":"A","$type":"Bolt.InvokeMember","$id":"65"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"volume","$type":"System.String"},"object":null},"position":{"x":-1362.0,"y":373.0},"guid":"7a264a6e-bfde-4688-967e-6001b6c3e0df","$version":"A","$type":"Bolt.GetVariable","$id":"68"},{"chainable":false,"member":{"name":"SetActive","parameterTypes":["System.Boolean"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"target":null,"%value":{"$content":true,"$type":"System.Boolean"}},"position":{"x":-894.0,"y":-166.0},"guid":"e493d07d-86a2-4b73-8249-abd02c367ceb","$version":"A","$type":"Bolt.InvokeMember","$id":"70"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"volume","$type":"System.String"},"object":null},"position":{"x":-1088.0,"y":-69.0},"guid":"389f3b67-49db-41d5-93d9-7c73c91c4efc","$version":"A","$type":"Bolt.GetVariable","$id":"73"},{"defaultValues":{},"position":{"x":-1215.0,"y":-165.0},"guid":"36d0c3c5-d020-4354-acdc-5902e7febd11","$version":"A","$type":"Bolt.Branch","$id":"75"},{"chainable":false,"member":{"name":"CompareTag","parameterTypes":["System.String"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"target":null,"%tag":{"$content":"Player","$type":"System.String"}},"position":{"x":-1452.0,"y":-223.0},"guid":"029737d4-0bb1-4f2e-b65f-2352fa726516","$version":"A","$type":"Bolt.InvokeMember","$id":"77"},{"coroutine":false,"defaultValues":{"target":null},"position":{"x":-1702.0,"y":-223.0},"guid":"e21086c7-aef4-4c10-a225-295f793be013","$version":"A","$type":"Bolt.OnTriggerStay","$id":"80"},{"coroutine":false,"defaultValues":{"target":null},"position":{"x":-1591.0,"y":275.0},"guid":"db0c2759-5dcc-44d2-b5d1-71daa74817f4","$version":"A","$type":"Bolt.OnTriggerExit","$id":"82"},{"nest":{"source":"Embed","macro":null,"embed":{"variables":{"collection":{"$content":[{"name":"crates","value":{"$content":[],"$type":"System.Collections.Generic.List`1[[UnityEngine.GameObject,
|
|
UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"},"$version":"A"},{"name":"crateDefaultMaterials","value":{"$content":[2,3],"$type":"System.Collections.Generic.List`1[[UnityEngine.Material,
|
|
UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]"},"$version":"A"}],"$version":"A"},"$version":"A"},"controlInputDefinitions":[{"key":"Enter","label":null,"summary":null,"hideLabel":false}],"controlOutputDefinitions":[{"key":"Exit","label":null,"summary":null,"hideLabel":false}],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"CubeUnwarp","summary":null,"pan":{"x":244.3389,"y":-37.86678},"zoom":0.35,"elements":[{"defaultValues":{},"position":{"x":-704.0,"y":-128.0},"guid":"211a1d42-1114-49b4-915e-4df83cbb225e","$version":"A","$type":"Bolt.GraphInput","$id":"100"},{"defaultValues":{},"position":{"x":620.0,"y":-116.0},"guid":"43e342b4-356b-421b-b33b-fe8875a7c572","$version":"A","$type":"Bolt.GraphOutput","$id":"102"},{"dictionary":false,"defaultValues":{},"position":{"x":-82.0,"y":-141.0},"guid":"62b5ba7b-ebd2-4d61-8a04-0d6ab4d76508","$version":"A","$type":"Bolt.ForEach","$id":"104"},{"specifyFallback":false,"kind":"Graph","defaultValues":{"name":{"$content":"crateDefaultMaterials","$type":"System.String"}},"position":{"x":184.0,"y":59.0},"guid":"3d5aa2a3-5866-4e59-a32d-328b015cca90","$version":"A","$type":"Bolt.GetVariable","$id":"106"},{"kind":"Graph","defaultValues":{"name":{"$content":"crates","$type":"System.String"}},"position":{"x":-275.0,"y":-141.0},"guid":"18edaa42-4bee-4cbb-9652-335905c4abab","$version":"A","$type":"Bolt.SetVariable","$id":"108"},{"chainable":false,"member":{"name":"FindGameObjectsWithTag","parameterTypes":["System.String"],"targetType":"UnityEngine.GameObject","targetTypeName":"UnityEngine.GameObject","$version":"A"},"defaultValues":{"%tag":{"$content":"Crate","$type":"System.String"}},"position":{"x":-565.0,"y":-131.0},"guid":"8a5ddff1-6860-4a27-ac5e-4029fefb1e87","$version":"A","$type":"Bolt.InvokeMember","$id":"110"},{"chainable":false,"member":{"name":"GetComponent","parameterTypes":["System.Type"],"targetType":"UnityEngine.Component","targetTypeName":"UnityEngine.Component","$version":"A"},"defaultValues":{"target":null,"%type":{"$content":"UnityEngine.MeshRenderer","$type":"System.RuntimeType"}},"position":{"x":109.0,"y":-114.0},"guid":"05234c0a-d541-4243-8b9a-3c9702d15cab","$version":"A","$type":"Bolt.InvokeMember","$id":"113"},{"chainable":false,"member":{"name":"materials","parameterTypes":null,"targetType":"UnityEngine.Renderer","targetTypeName":"UnityEngine.Renderer","$version":"A"},"defaultValues":{"target":null},"position":{"x":438.0,"y":-115.0},"guid":"9230b787-9741-4b46-835f-95c1a764bd95","$version":"A","$type":"Bolt.SetMember","$id":"116"},{"sourceUnit":{"$ref":"108"},"sourceKey":"assigned","destinationUnit":{"$ref":"104"},"destinationKey":"enter","guid":"7413322c-bc61-4311-8905-6e933a19582a","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"104"},"sourceKey":"body","destinationUnit":{"$ref":"113"},"destinationKey":"enter","guid":"31f2afb6-3348-434a-8207-74220c5729c8","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"110"},"sourceKey":"exit","destinationUnit":{"$ref":"108"},"destinationKey":"assign","guid":"d85ccc17-e291-4f1e-abd5-1d8db9ae0d64","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"113"},"sourceKey":"exit","destinationUnit":{"$ref":"116"},"destinationKey":"assign","guid":"009cd4ec-66ed-4618-a2fe-8a9c30937de2","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"100"},"sourceKey":"Enter","destinationUnit":{"$ref":"110"},"destinationKey":"enter","guid":"af338c96-e048-4393-b1fc-51632b666176","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"116"},"sourceKey":"assigned","destinationUnit":{"$ref":"102"},"destinationKey":"Exit","guid":"179c4505-88f0-4c6c-a412-5ff2bebfaba1","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"108"},"sourceKey":"output","destinationUnit":{"$ref":"104"},"destinationKey":"collection","guid":"1b4f395b-ca9b-4ee4-acb1-e98626d2b84c","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"104"},"sourceKey":"currentItem","destinationUnit":{"$ref":"113"},"destinationKey":"target","guid":"627be21c-363f-44bc-adee-46962f59ffa9","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"106"},"sourceKey":"value","destinationUnit":{"$ref":"116"},"destinationKey":"input","guid":"1377d70b-68db-42d0-950d-c22377c54e4a","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"110"},"sourceKey":"result","destinationUnit":{"$ref":"108"},"destinationKey":"input","guid":"6e75f0af-fb01-41da-9020-5b0585833a38","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"113"},"sourceKey":"result","destinationUnit":{"$ref":"116"},"destinationKey":"target","guid":"25d30e91-6e85-4e81-a445-f65501bfb645","$type":"Bolt.ValueConnection"}],"$version":"A"}},"defaultValues":{},"position":{"x":-1355.0,"y":275.0},"guid":"3ad8fdfa-acf8-4aaa-9b64-60aa9b4a79da","$version":"A","$type":"Bolt.SuperUnit","$id":"84"},{"sourceUnit":{"$ref":"80"},"sourceKey":"trigger","destinationUnit":{"$ref":"77"},"destinationKey":"enter","guid":"0df7be58-e766-42ce-85fc-5cce4d84303e","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"77"},"sourceKey":"exit","destinationUnit":{"$ref":"75"},"destinationKey":"enter","guid":"5a074bc6-a57a-4f38-996f-5c6ab343a614","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"75"},"sourceKey":"ifTrue","destinationUnit":{"$ref":"10"},"destinationKey":"Enter","guid":"af36e77d-108b-4881-95e7-532c312d607d","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"82"},"sourceKey":"trigger","destinationUnit":{"$ref":"84"},"destinationKey":"Enter","guid":"b6078a19-d30f-47b6-bc46-3648443fb9c6","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"10"},"sourceKey":"Exit","destinationUnit":{"$ref":"70"},"destinationKey":"enter","guid":"8f0baac7-254e-486f-a2b3-991945cfce6f","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"84"},"sourceKey":"Exit","destinationUnit":{"$ref":"65"},"destinationKey":"enter","guid":"988d4684-2239-4b79-a5fe-1d7badabf449","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"80"},"sourceKey":"collider","destinationUnit":{"$ref":"77"},"destinationKey":"target","guid":"f57e3ebd-977c-4268-87b6-196e49d66073","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"77"},"sourceKey":"result","destinationUnit":{"$ref":"75"},"destinationKey":"condition","guid":"5241431c-27d1-4331-a1f6-c568fd9dbbb1","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"73"},"sourceKey":"value","destinationUnit":{"$ref":"70"},"destinationKey":"target","guid":"3cd6354e-ede0-4ab7-ba54-3d0f8542a157","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"68"},"sourceKey":"value","destinationUnit":{"$ref":"65"},"destinationKey":"target","guid":"56806176-0e0b-4098-a645-8863205a057c","$type":"Bolt.ValueConnection"},{"position":{"xMin":-1735.0,"yMin":-327.0,"xMax":-1291.0,"yMax":-54.0},"label":"Detect
|
|
if the player is standing on the CrateSwitch.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"6daa54a0-4305-45ff-b804-0ce601a318b8","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-1230.0,"yMin":-251.0,"xMax":-692.0,"yMax":52.0},"label":"If
|
|
true, run a custom Super Unit & activate a post-processing volume.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"89c813c6-b86c-4cab-953b-312c1b761308","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-1634.0,"yMin":205.0,"xMax":-958.0,"yMax":480.0},"label":"When
|
|
the trigger is no longer being touched, run a custom Super Unit & deactive
|
|
the post-processing volume.","comment":null,"color":{"r":0.0,"g":0.0,"b":0.0,"a":1.0},"guid":"0ca68bfb-c2f7-401a-8d29-20131212afff","$version":"A","$type":"Ludiq.GraphGroup"}],"$version":"A"}}'
|
|
_objectReferences:
|
|
- {fileID: 2100000, guid: 0693e9a89d5bdd5438722d9362a525c3, type: 2}
|
|
- {fileID: 2100000, guid: 10c24e7550423ec4f991ce452d7c1198, type: 2}
|
|
- {fileID: 2100002, guid: 02b5a5513b38057478d72f138c32cd7a, type: 3}
|
|
- {fileID: 2100002, guid: c9aac741a7a4cf84fa581e0d7140506f, type: 3}
|