Kritik Punkte im Szene 14 angegangen

-> Neues Partikel Prefab für jeweils Plattformen anderen Dimension
-> NoShift Prefab mit Trigger in dem nicht dimShifted werden kann
-> Richtige Musik
-> Plattformen laufen jetzt Synchron
-> Frank fällt hinter das Wasser
This commit is contained in:
GungHolo
2023-06-22 16:59:42 +02:00
parent 279e8976af
commit 869f066a92
12 changed files with 10875 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ public class DimShift : MonoBehaviour
// 0 = inactive in Dimension 1
// 1 = active in Dimension 1
[SerializeField] private bool inFirstDim;
[SerializeField] private bool ShiftingEnabled;
[SerializeField] public bool ShiftingEnabled;
AudioSource Audio1;

View File

@@ -0,0 +1,38 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NoShift : MonoBehaviour
{
private DimShift dimshift;
// Start is called before the first frame update
void Start()
{
dimshift = GameObject.Find("Frank").GetComponent<DimShift>();
}
// Update is called once per frame
void Update()
{
}
void OnTriggerEnter2D(Collider2D col)
{
if(col.CompareTag("Player"))
{
dimshift.ShiftingEnabled = false;
}
}
void OnTriggerExit2D(Collider2D col)
{
if(col.CompareTag("Player"))
{
dimshift.ShiftingEnabled = true;
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ca046cb971e6b024aa39f680d291b6cb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: