initial upload

This commit is contained in:
niko
2026-05-24 12:14:04 +02:00
parent 213ed4c965
commit 2526aab9c7
961 changed files with 457060 additions and 10 deletions
@@ -0,0 +1,42 @@
using System;
using UnityEngine;
[Serializable]
public class lalascare : MonoBehaviour
{
[NonSerialized]
public static int leverswitch;
public int trigger;
public Transform Player;
public GameObject animated;
public Transform dooractivater;
public AudioClip fallsound;
public lalascare()
{
trigger = 1;
}
public virtual void OnTriggerEnter(Collider other)
{
leverswitch = trigger;
Player.parent = null;
animated.GetComponent<Animation>().Play("scare2");
animated.GetComponent<AudioSource>().PlayOneShot(fallsound);
bool flag = false;
}
public virtual void OnTriggerExit(Collider other)
{
UnityEngine.Object.Destroy(gameObject);
}
public virtual void Main()
{
}
}