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,31 @@
using System;
using UnityEngine;
[Serializable]
public class Popupguiscript : MonoBehaviour
{
public Texture2D yourtexture;
public AudioClip popupsound;
public virtual void Update()
{
if (popupsound != null)
{
if (!GetComponent<AudioSource>().isPlaying)
{
GetComponent<AudioSource>().clip = popupsound;
GetComponent<AudioSource>().Play();
}
}
}
public virtual void OnGUI()
{
GUI.DrawTexture(new Rect(0f, 0f, Screen.width, Screen.height), yourtexture);
}
public virtual void Main()
{
}
}