add particle systems

add vfx graph
This commit is contained in:
2025-06-06 12:48:53 +02:00
parent 9180b3c835
commit ddee61efc5
1624 changed files with 1725676 additions and 4 deletions
@@ -0,0 +1,53 @@
using UnityEngine;
using System.Collections;
using TMPro;
public class AdjustTimeScale : MonoBehaviour
{
TextMeshProUGUI textMesh;
private void Start()
{
textMesh = GetComponent<TextMeshProUGUI>();
}
void Update()
{
if (Input.GetAxis("Mouse ScrollWheel") > 0f)
{
if (Time.timeScale < 1.0F)
{
Time.timeScale += 0.1f;
}
Time.fixedDeltaTime = 0.02F * Time.timeScale;
if (textMesh != null)
{
textMesh.text = "Time Scale : " + System.Math.Round(Time.timeScale, 2);
}
}
else if (Input.GetAxis("Mouse ScrollWheel") < 0f)
{
if (Time.timeScale >= 0.2F)
{
Time.timeScale -= 0.1f;
}
Time.fixedDeltaTime = 0.02F * Time.timeScale;
if (textMesh != null)
{
textMesh.text = "Time Scale : " + System.Math.Round(Time.timeScale, 2);
}
}
}
void OnApplicationQuit()
{
Time.timeScale = 1.0F;
Time.fixedDeltaTime = 0.02F;
}
}