MVP for Dump Puzzle
This commit is contained in:
8
Assets/Scripts/DamianExperiments/Dump.meta
Normal file
8
Assets/Scripts/DamianExperiments/Dump.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d6520d65246791a409c449d8e4b35a0d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,32 @@
|
||||
using Core.SaveLoad;
|
||||
using UnityEditor.Animations;
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class FrakkeAnimEventTrigger : MonoBehaviour
|
||||
{
|
||||
[Header("Frakke Crashing References")]
|
||||
public AppleMachine FrakkeSMRef;
|
||||
public GameObject stateToChangeToAfterCrashing;
|
||||
|
||||
[Header("Fence Breaking References")]
|
||||
public AppleMachine FenceSMRef;
|
||||
public GameObject FenceStateToSet;
|
||||
|
||||
public void OnFrakkeCrashEnded()
|
||||
{
|
||||
FrakkeSMRef.ChangeState(stateToChangeToAfterCrashing);
|
||||
}
|
||||
|
||||
public void OnFenceBroken()
|
||||
{
|
||||
if (FenceSMRef != null)
|
||||
{
|
||||
FenceSMRef.ChangeState(FenceStateToSet);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("FrakkeRevUpCrashBehaviour: FenceSMRef is not assigned.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c0fe9a1535dd5004ebd1d26e9482be9c
|
||||
@@ -0,0 +1,19 @@
|
||||
using Core.SaveLoad;
|
||||
using UnityEditor.Animations;
|
||||
using UnityEngine;
|
||||
|
||||
public class FrakkeCrashedBehaviour : MonoBehaviour
|
||||
{
|
||||
public Animator FrakkeAnimControllerRef;
|
||||
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
if (FrakkeAnimControllerRef != null)
|
||||
{
|
||||
FrakkeAnimControllerRef.SetTrigger("Crashes");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 543c2dad4fc14a740975065cf856b336
|
||||
@@ -0,0 +1,21 @@
|
||||
using Core.SaveLoad;
|
||||
using UnityEditor.Animations;
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class FrakkeRevUpCrashBehaviour : MonoBehaviour
|
||||
{
|
||||
public Animator FrakkeAnimControllerRef;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
if (FrakkeAnimControllerRef != null)
|
||||
{
|
||||
FrakkeAnimControllerRef.SetTrigger("SpeedsOff");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a29c08d7133456a44a94b128e8937c1b
|
||||
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class HedgeHogBehaviour : MonoBehaviour
|
||||
{
|
||||
public void moveHedgeHog()
|
||||
{
|
||||
Debug.Log("HedgeHog is moving!");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b7cbf82c3bb94864a9289bddd331b759
|
||||
22
Assets/Scripts/DamianExperiments/Dump/Teleporter.cs
Normal file
22
Assets/Scripts/DamianExperiments/Dump/Teleporter.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class Teleporter : MonoBehaviour
|
||||
{
|
||||
public GameObject ObjectToTeleportA;
|
||||
public GameObject ObjectToTeleportB;
|
||||
|
||||
public Transform TeleportLocationA;
|
||||
public Transform TeleportLocationB;
|
||||
|
||||
public void TeleporObjects()
|
||||
{
|
||||
if (ObjectToTeleportA != null && TeleportLocationA != null)
|
||||
{
|
||||
ObjectToTeleportA.transform.position = TeleportLocationA.position;
|
||||
}
|
||||
if (ObjectToTeleportB != null && TeleportLocationB != null)
|
||||
{
|
||||
ObjectToTeleportB.transform.position = TeleportLocationB.position;
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/DamianExperiments/Dump/Teleporter.cs.meta
Normal file
2
Assets/Scripts/DamianExperiments/Dump/Teleporter.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ad363a67dcb87324caf34da7ea7e8bec
|
||||
Reference in New Issue
Block a user