%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":-1211.022,"y":-132.2463},"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":135.7878,"y":-56.28988},"zoom":0.55,"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"},{"defaultValues":{},"position":{"x":1136.0,"y":397.0},"guid":"43e342b4-356b-421b-b33b-fe8875a7c572","$version":"A","$type":"Bolt.GraphOutput","$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"},{"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":"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":"45"},"sourceKey":"exit","destinationUnit":{"$ref":"32"},"destinationKey":"assign","guid":"dcfdd080-c9c2-4ae6-acc2-1a6034f19047","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"35"},"sourceKey":"exit","destinationUnit":{"$ref":"30"},"destinationKey":"Exit","guid":"b0c83798-b95f-4a98-a55f-0eb5d725a980","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"38"},"sourceKey":"exit","destinationUnit":{"$ref":"41"},"destinationKey":"assign","guid":"2d92d6b1-7ded-4a78-8da4-b3e736d0c526","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"26"},"sourceKey":"Enter","destinationUnit":{"$ref":"38"},"destinationKey":"enter","guid":"855ed978-0164-415f-aa2e-6092df25d6a1","$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":"result","destinationUnit":{"$ref":"41"},"destinationKey":"input","guid":"aba20747-2757-497d-9189-e79696f88738","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"28"},"sourceKey":"currentItem","destinationUnit":{"$ref":"35"},"destinationKey":"target","guid":"28316b18-c618-4566-afa2-44651dd194b8","$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":"45"},"destinationKey":"target","guid":"c58f9f64-170f-47dc-a0df-e7a0e21cddfe","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"45"},"sourceKey":"result","destinationUnit":{"$ref":"32"},"destinationKey":"target","guid":"5dc8036b-13f7-418e-b317-f7800498f929","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"43"},"sourceKey":"value","destinationUnit":{"$ref":"32"},"destinationKey":"input","guid":"0d1aff55-402e-4094-9af8-693f6d051a5f","$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":-1106.0,"y":-221.0},"guid":"0b0d11d0-29fa-40a6-befe-32965271e333","$version":"A","$type":"Bolt.SuperUnit","$id":"10"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"volume","$type":"System.String"},"object":null},"position":{"x":-1335.0,"y":970.0},"guid":"7a264a6e-bfde-4688-967e-6001b6c3e0df","$version":"A","$type":"Bolt.GetVariable","$id":"65"},{"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":-930.0,"y":-222.0},"guid":"e493d07d-86a2-4b73-8249-abd02c367ceb","$version":"A","$type":"Bolt.InvokeMember","$id":"67"},{"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":"86"},{"defaultValues":{},"position":{"x":620.0,"y":-116.0},"guid":"43e342b4-356b-421b-b33b-fe8875a7c572","$version":"A","$type":"Bolt.GraphOutput","$id":"88"},{"dictionary":false,"defaultValues":{},"position":{"x":-82.0,"y":-141.0},"guid":"62b5ba7b-ebd2-4d61-8a04-0d6ab4d76508","$version":"A","$type":"Bolt.ForEach","$id":"90"},{"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":"92"},{"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":"94"},{"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":"96"},{"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":"99"},{"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":"102"},{"sourceUnit":{"$ref":"86"},"sourceKey":"Enter","destinationUnit":{"$ref":"96"},"destinationKey":"enter","guid":"af338c96-e048-4393-b1fc-51632b666176","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"90"},"sourceKey":"body","destinationUnit":{"$ref":"99"},"destinationKey":"enter","guid":"31f2afb6-3348-434a-8207-74220c5729c8","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"99"},"sourceKey":"exit","destinationUnit":{"$ref":"102"},"destinationKey":"assign","guid":"009cd4ec-66ed-4618-a2fe-8a9c30937de2","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"96"},"sourceKey":"exit","destinationUnit":{"$ref":"94"},"destinationKey":"assign","guid":"d85ccc17-e291-4f1e-abd5-1d8db9ae0d64","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"102"},"sourceKey":"assigned","destinationUnit":{"$ref":"88"},"destinationKey":"Exit","guid":"179c4505-88f0-4c6c-a412-5ff2bebfaba1","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"94"},"sourceKey":"assigned","destinationUnit":{"$ref":"90"},"destinationKey":"enter","guid":"7413322c-bc61-4311-8905-6e933a19582a","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"92"},"sourceKey":"value","destinationUnit":{"$ref":"102"},"destinationKey":"input","guid":"1377d70b-68db-42d0-950d-c22377c54e4a","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"90"},"sourceKey":"currentItem","destinationUnit":{"$ref":"99"},"destinationKey":"target","guid":"627be21c-363f-44bc-adee-46962f59ffa9","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"94"},"sourceKey":"output","destinationUnit":{"$ref":"90"},"destinationKey":"collection","guid":"1b4f395b-ca9b-4ee4-acb1-e98626d2b84c","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"96"},"sourceKey":"result","destinationUnit":{"$ref":"94"},"destinationKey":"input","guid":"6e75f0af-fb01-41da-9020-5b0585833a38","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"99"},"sourceKey":"result","destinationUnit":{"$ref":"102"},"destinationKey":"target","guid":"25d30e91-6e85-4e81-a445-f65501bfb645","$type":"Bolt.ValueConnection"}],"$version":"A"}},"defaultValues":{},"position":{"x":-1328.0,"y":872.0},"guid":"3ad8fdfa-acf8-4aaa-9b64-60aa9b4a79da","$version":"A","$type":"Bolt.SuperUnit","$id":"70"},{"defaultValues":{},"position":{"x":-1251.0,"y":-221.0},"guid":"36d0c3c5-d020-4354-acdc-5902e7febd11","$version":"A","$type":"Bolt.Branch","$id":"117"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"volume","$type":"System.String"},"object":null},"position":{"x":-1124.0,"y":-125.0},"guid":"389f3b67-49db-41d5-93d9-7c73c91c4efc","$version":"A","$type":"Bolt.GetVariable","$id":"119"},{"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":-1141.0,"y":875.0},"guid":"15e9bf4c-d17b-4100-960e-c4ca9aa0794e","$version":"A","$type":"Bolt.InvokeMember","$id":"121"},{"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":-1449.0,"y":-207.0},"guid":"029737d4-0bb1-4f2e-b65f-2352fa726516","$version":"A","$type":"Bolt.InvokeMember","$id":"124"},{"coroutine":false,"defaultValues":{"target":null},"position":{"x":-1699.0,"y":-207.0},"guid":"e21086c7-aef4-4c10-a225-295f793be013","$version":"A","$type":"Bolt.OnTriggerStay","$id":"127"},{"coroutine":false,"defaultValues":{"target":null},"position":{"x":-1564.0,"y":872.0},"guid":"db0c2759-5dcc-44d2-b5d1-71daa74817f4","$version":"A","$type":"Bolt.OnTriggerExit","$id":"129"},{"sourceUnit":{"$ref":"127"},"sourceKey":"trigger","destinationUnit":{"$ref":"124"},"destinationKey":"enter","guid":"0df7be58-e766-42ce-85fc-5cce4d84303e","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"124"},"sourceKey":"exit","destinationUnit":{"$ref":"117"},"destinationKey":"enter","guid":"5a074bc6-a57a-4f38-996f-5c6ab343a614","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"117"},"sourceKey":"ifTrue","destinationUnit":{"$ref":"10"},"destinationKey":"Enter","guid":"af36e77d-108b-4881-95e7-532c312d607d","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"129"},"sourceKey":"trigger","destinationUnit":{"$ref":"70"},"destinationKey":"Enter","guid":"b6078a19-d30f-47b6-bc46-3648443fb9c6","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"10"},"sourceKey":"Exit","destinationUnit":{"$ref":"67"},"destinationKey":"enter","guid":"8f0baac7-254e-486f-a2b3-991945cfce6f","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"70"},"sourceKey":"Exit","destinationUnit":{"$ref":"121"},"destinationKey":"enter","guid":"988d4684-2239-4b79-a5fe-1d7badabf449","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"127"},"sourceKey":"collider","destinationUnit":{"$ref":"124"},"destinationKey":"target","guid":"f57e3ebd-977c-4268-87b6-196e49d66073","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"124"},"sourceKey":"result","destinationUnit":{"$ref":"117"},"destinationKey":"condition","guid":"5241431c-27d1-4331-a1f6-c568fd9dbbb1","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"119"},"sourceKey":"value","destinationUnit":{"$ref":"67"},"destinationKey":"target","guid":"3cd6354e-ede0-4ab7-ba54-3d0f8542a157","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"65"},"sourceKey":"value","destinationUnit":{"$ref":"121"},"destinationKey":"target","guid":"56806176-0e0b-4098-a645-8863205a057c","$type":"Bolt.ValueConnection"},{"position":{"xMin":-1721.0,"yMin":-255.0,"xMax":-1300.0,"yMax":-66.0},"label":"Detect if the player is standing on the CrateSwitch.","comment":null,"color":{"r":0.0,"g":0.7019608,"b":1.0,"a":1.0},"guid":"6daa54a0-4305-45ff-b804-0ce601a318b8","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-1263.0,"yMin":-255.0,"xMax":-718.0,"yMax":-12.0},"label":"If true, run a custom Super Unit & activate the assigned post-processing volume.","comment":null,"color":{"r":0.0,"g":0.7019608,"b":1.0,"a":1.0},"guid":"89c813c6-b86c-4cab-953b-312c1b761308","$version":"A","$type":"Ludiq.GraphGroup"},{"position":{"xMin":-1657.0,"yMin":830.0,"xMax":-917.0,"yMax":1095.0},"label":"When the trigger is no longer being touched, run a custom Super Unit & deactive the post-processing volume.","comment":"","color":{"r":0.0,"g":0.7000403,"b":1.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}