MVP for Dump Puzzle

This commit is contained in:
2025-12-08 08:48:35 +01:00
parent c96be39e64
commit 7de0e1776e
93 changed files with 28292 additions and 82020 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d6520d65246791a409c449d8e4b35a0d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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.");
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: c0fe9a1535dd5004ebd1d26e9482be9c

View File

@@ -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");
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 543c2dad4fc14a740975065cf856b336

View File

@@ -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");
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: a29c08d7133456a44a94b128e8937c1b

View File

@@ -0,0 +1,9 @@
using UnityEngine;
public class HedgeHogBehaviour : MonoBehaviour
{
public void moveHedgeHog()
{
Debug.Log("HedgeHog is moving!");
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: b7cbf82c3bb94864a9289bddd331b759

View 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;
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: ad363a67dcb87324caf34da7ea7e8bec