Added explosions

This commit is contained in:
2026-01-23 00:01:04 +00:00
parent e79ff061a7
commit e5996382e8
75 changed files with 34537 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
using UnityEngine;
using TMPro;
using System;
namespace MirzaBeig.CinematicExplosionsFree
{
[ExecuteAlways]
public class FPSTest : MonoBehaviour
{
public Vector2 size = new Vector2(128.0f, 64.0f);
public Vector2 position = new Vector2(16.0f, 64.0f);
[Space]
public float spacing = 72;
[Space]
public int[] fpsButtons = new int[] { 0, 10, 30, 45, 60, 90, 120 };
void Start()
{
}
void OnGUI()
{
float positionY = position.y;
for (int i = 0; i < fpsButtons.Length; i++)
{
int fps = fpsButtons[i];
if (GUI.Button(new Rect(position.x, positionY, size.x, size.y), $"FPS: {fps}"))
{
Application.targetFrameRate = fps;
}
positionY += spacing;
}
}
}
}