leaderboard feature added

This commit is contained in:
Mausham
2025-12-17 22:16:41 +05:45
parent df4017f6be
commit f19bbb9d8c
25 changed files with 106 additions and 170 deletions

View File

@@ -1,18 +1,21 @@
using Darkmatter.Core;
using UnityEngine;
using VContainer;
namespace Darkmatter.Presentation
{
public class Splash : MonoBehaviour
{
public void OnDespawn()
[Inject] IPool<Splash> pool;
public void ReturnToPool()
{
Debug.Log("Despawned splash");
Invoke("PoolReturn", 2);
}
public void OnSpawn()
private void PoolReturn()
{
Debug.Log("Spawnned Splash");
pool.ReturnToPool(this);
}
}
}