Added the Rube Goldberg MAchine
This commit is contained in:
8
Assets/Art/Animations/CementFactory/FlowerPuzzle.meta
Normal file
8
Assets/Art/Animations/CementFactory/FlowerPuzzle.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 61c3a8d078f28754eb337bd9bb5c904c
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Assets/Art/Animations/CementFactory/WheelPuzzle.meta
Normal file
8
Assets/Art/Animations/CementFactory/WheelPuzzle.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 32f8246a7e6ed2c43bf04aecb0d71441
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1107 &-4504013459328509688
|
||||||
|
AnimatorStateMachine:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Base Layer
|
||||||
|
m_ChildStates:
|
||||||
|
- serializedVersion: 1
|
||||||
|
m_State: {fileID: -2268065419119163844}
|
||||||
|
m_Position: {x: 30, y: 230, z: 0}
|
||||||
|
m_ChildStateMachines: []
|
||||||
|
m_AnyStateTransitions: []
|
||||||
|
m_EntryTransitions: []
|
||||||
|
m_StateMachineTransitions: {}
|
||||||
|
m_StateMachineBehaviours: []
|
||||||
|
m_AnyStatePosition: {x: 50, y: 20, z: 0}
|
||||||
|
m_EntryPosition: {x: 50, y: 120, z: 0}
|
||||||
|
m_ExitPosition: {x: 800, y: 120, z: 0}
|
||||||
|
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
||||||
|
m_DefaultState: {fileID: -2268065419119163844}
|
||||||
|
--- !u!1102 &-2268065419119163844
|
||||||
|
AnimatorState:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Anim_RubeGoldbergM
|
||||||
|
m_Speed: 1
|
||||||
|
m_CycleOffset: 0
|
||||||
|
m_Transitions: []
|
||||||
|
m_StateMachineBehaviours: []
|
||||||
|
m_Position: {x: 50, y: 50, z: 0}
|
||||||
|
m_IKOnFeet: 0
|
||||||
|
m_WriteDefaultValues: 1
|
||||||
|
m_Mirror: 0
|
||||||
|
m_SpeedParameterActive: 0
|
||||||
|
m_MirrorParameterActive: 0
|
||||||
|
m_CycleOffsetParameterActive: 0
|
||||||
|
m_TimeParameterActive: 0
|
||||||
|
m_Motion: {fileID: 7400000, guid: 8ed5ea5cd357ea8499e8d0f712941412, type: 2}
|
||||||
|
m_Tag:
|
||||||
|
m_SpeedParameter:
|
||||||
|
m_MirrorParameter:
|
||||||
|
m_CycleOffsetParameter:
|
||||||
|
m_TimeParameter:
|
||||||
|
--- !u!91 &9100000
|
||||||
|
AnimatorController:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: AnimCOntroller_RubeM
|
||||||
|
serializedVersion: 5
|
||||||
|
m_AnimatorParameters: []
|
||||||
|
m_AnimatorLayers:
|
||||||
|
- serializedVersion: 5
|
||||||
|
m_Name: Base Layer
|
||||||
|
m_StateMachine: {fileID: -4504013459328509688}
|
||||||
|
m_Mask: {fileID: 0}
|
||||||
|
m_Motions: []
|
||||||
|
m_Behaviours: []
|
||||||
|
m_BlendingMode: 0
|
||||||
|
m_SyncedLayerIndex: -1
|
||||||
|
m_DefaultWeight: 0
|
||||||
|
m_IKPass: 0
|
||||||
|
m_SyncedLayerAffectsTiming: 0
|
||||||
|
m_Controller: {fileID: 9100000}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3f5d854c2e6211c418cd47ee6d50056a
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 9100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8ed5ea5cd357ea8499e8d0f712941412
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 7400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
%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: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||||
|
m_Name: TimeL_RubeM
|
||||||
|
m_EditorClassIdentifier: Unity.Timeline::UnityEngine.Timeline.TimelineAsset
|
||||||
|
m_Version: 0
|
||||||
|
m_Tracks: []
|
||||||
|
m_FixedDuration: 0
|
||||||
|
m_EditorSettings:
|
||||||
|
m_Framerate: 60
|
||||||
|
m_ScenePreview: 1
|
||||||
|
m_DurationMode: 0
|
||||||
|
m_MarkerTrack: {fileID: 0}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7e90454f7c27d1f43aeb879eb9dacfae
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -21,7 +21,10 @@ MonoBehaviour:
|
|||||||
- {fileID: 11400000, guid: f45aaf14dd93ff7439fcd8372f3a3a1f, type: 2}
|
- {fileID: 11400000, guid: f45aaf14dd93ff7439fcd8372f3a3a1f, type: 2}
|
||||||
- {fileID: 11400000, guid: 3ec763150f668574582e172c922cdde8, type: 2}
|
- {fileID: 11400000, guid: 3ec763150f668574582e172c922cdde8, type: 2}
|
||||||
- {fileID: 11400000, guid: e1ffcfe60db95f940a46ec73ffdfa542, type: 2}
|
- {fileID: 11400000, guid: e1ffcfe60db95f940a46ec73ffdfa542, type: 2}
|
||||||
|
- {fileID: 11400000, guid: 6a6fd39c1b837a948b778da3912bd377, type: 2}
|
||||||
|
- {fileID: 11400000, guid: be4c25532111a0d49a4a539f0c15b68b, type: 2}
|
||||||
initialSteps:
|
initialSteps:
|
||||||
- {fileID: 11400000, guid: 23fc05c6888b32a4a93e612a70518559, type: 2}
|
- {fileID: 11400000, guid: 23fc05c6888b32a4a93e612a70518559, type: 2}
|
||||||
- {fileID: 11400000, guid: f45aaf14dd93ff7439fcd8372f3a3a1f, type: 2}
|
- {fileID: 11400000, guid: f45aaf14dd93ff7439fcd8372f3a3a1f, type: 2}
|
||||||
- {fileID: 11400000, guid: e1ffcfe60db95f940a46ec73ffdfa542, type: 2}
|
- {fileID: 11400000, guid: e1ffcfe60db95f940a46ec73ffdfa542, type: 2}
|
||||||
|
- {fileID: 11400000, guid: be4c25532111a0d49a4a539f0c15b68b, type: 2}
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
%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: 11500000, guid: 84e39aac66cf4a10a89abc01b04b13af, type: 3}
|
||||||
|
m_Name: Puz_CemFac_PlaceWheel
|
||||||
|
m_EditorClassIdentifier: AppleHillsScripts::PuzzleStepSO
|
||||||
|
stepId: PlaceCementWheel
|
||||||
|
displayName: PlaceCementWheel
|
||||||
|
description:
|
||||||
|
icon: {fileID: 0}
|
||||||
|
unlocks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6a6fd39c1b837a948b778da3912bd377
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
%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: 11500000, guid: 84e39aac66cf4a10a89abc01b04b13af, type: 3}
|
||||||
|
m_Name: Puz_CemFac_PushedCandies
|
||||||
|
m_EditorClassIdentifier: AppleHillsScripts::PuzzleStepSO
|
||||||
|
stepId: PushedCandies
|
||||||
|
displayName: PushedCandies
|
||||||
|
description:
|
||||||
|
icon: {fileID: 0}
|
||||||
|
unlocks:
|
||||||
|
- {fileID: 11400000, guid: 6a6fd39c1b837a948b778da3912bd377, type: 2}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: be4c25532111a0d49a4a539f0c15b68b
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -2,9 +2,24 @@ using UnityEngine;
|
|||||||
|
|
||||||
public class Destroyer : MonoBehaviour
|
public class Destroyer : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
[SerializeField]
|
||||||
|
private GameObject targetToDestroy;
|
||||||
|
|
||||||
// Destroy the GameObject this component is attached to
|
// Destroy the GameObject this component is attached to
|
||||||
public void DestroySelf()
|
public void DestroySelf()
|
||||||
{
|
{
|
||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Destroy the GameObject assigned in the inspector
|
||||||
|
public void DestroyTarget()
|
||||||
|
{
|
||||||
|
if (targetToDestroy == null)
|
||||||
|
{
|
||||||
|
Debug.LogWarning("Destroyer: No target assigned to destroy.", this);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Destroy(targetToDestroy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,4 +63,4 @@ MonoBehaviour:
|
|||||||
- {fileID: 11400000, guid: d0e8554a0463a924e803732e9209c92a, type: 2}
|
- {fileID: 11400000, guid: d0e8554a0463a924e803732e9209c92a, type: 2}
|
||||||
- {fileID: 11400000, guid: f5a6df00a3840924a8e5b5052a8c9b05, type: 2}
|
- {fileID: 11400000, guid: f5a6df00a3840924a8e5b5052a8c9b05, type: 2}
|
||||||
forbiddenItems: []
|
forbiddenItems: []
|
||||||
requiredItemCount: 4
|
requiredItemCount: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user