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:
@@ -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;
|
||||
|
38
Assets/AssetsFORELLE/Script/NoShift.cs
Normal file
38
Assets/AssetsFORELLE/Script/NoShift.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
11
Assets/AssetsFORELLE/Script/NoShift.cs.meta
generated
Normal file
11
Assets/AssetsFORELLE/Script/NoShift.cs.meta
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ca046cb971e6b024aa39f680d291b6cb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user