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

@@ -10,6 +10,7 @@ namespace InterfaceOff.WorldScene
[SerializeField] private int DeathIndex = 500;
[SerializeField] private Rigidbody Body;
[SerializeField] private GameObject RendererObject;
[SerializeField] private GameObject ExplosionPrefab;
private Quaternion StartRotation;
private Vector3 StartPosition;
@@ -55,6 +56,10 @@ namespace InterfaceOff.WorldScene
{
yield return new WaitForSeconds(1f);
RendererObject.SetActive(false);
GameObject explosionGoBoomBoom = Instantiate(ExplosionPrefab, transform);
yield return new WaitForSeconds(1f);
Destroy(explosionGoBoomBoom);
}
}
}

View File

@@ -22,7 +22,7 @@ namespace InterfaceOff.WorldScene
private static ScoreTracker Instance { get; set; }
private bool StoredScore = false;
private float Score = 0f;
private float Score;
public static float CurrentScore()
{