Protype Scene added + Tilemaps added + Prefabs modded

This commit is contained in:
GungHolo
2023-05-20 17:35:54 +02:00
parent c6bbfcd776
commit 567b099f6a
87 changed files with 22915 additions and 8 deletions

View File

@@ -27,4 +27,14 @@ public class MovingPlatform : MonoBehaviour
}
transform.position = Vector2.MoveTowards(transform.position, points[i].position, speed * Time.deltaTime);
}
private void OnCollisionEnter2D(Collision2D coll)
{
coll.transform.SetParent(transform);
}
private void OnCollisionExit2D(Collision2D coll)
{
coll.transform.SetParent(null);
}
}

View File

@@ -0,0 +1,34 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerPressurePlateMod: MonoBehaviour
{
public GameObject door;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void OnTriggerEnter2D(Collider2D other) {
//if (other.CompareTag("Player")) {
// spriteRenderer.sprite = activatedSprite;
//}
door.SetActive(false);
}
/*
void OnTriggerExit2D(Collider2D other) {
if (other.CompareTag("Player")) {
spriteRenderer.sprite = originalSprite;
}
}
*/
}

View File

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