Anti Softlock Mods an meinen Leveln
-> Neues DynamicWall Prefab, welches Frank durchlässt aber nichts anderes
This commit is contained in:
@@ -19,7 +19,7 @@ public class DynamicRespawn : MonoBehaviour
|
||||
|
||||
void OnTriggerEnter2D(Collider2D col)
|
||||
{
|
||||
if(CompareTag("Player"))
|
||||
if(col.CompareTag("Player"))
|
||||
{
|
||||
respawn.transform.SetPositionAndRotation(gameObject.transform.position ,Quaternion.identity);
|
||||
}
|
||||
|
28
Assets/AssetsFORELLE/Script/BossLevel/DynamicWall.cs
Normal file
28
Assets/AssetsFORELLE/Script/BossLevel/DynamicWall.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DynamicWall : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void OnTriggerEnter2D(Collider2D col)
|
||||
{
|
||||
if(col.CompareTag("Player")){gameObject.GetComponent<EdgeCollider2D>().enabled = false;}
|
||||
}
|
||||
|
||||
void OnTriggerExit2D(Collider2D col)
|
||||
{
|
||||
if(col.CompareTag("Player")){gameObject.GetComponent<EdgeCollider2D>().enabled = true;}
|
||||
}
|
||||
}
|
11
Assets/AssetsFORELLE/Script/BossLevel/DynamicWall.cs.meta
generated
Normal file
11
Assets/AssetsFORELLE/Script/BossLevel/DynamicWall.cs.meta
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a19c0f63b67f716478af1eeff5f9c5da
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user