leaderboard feature added
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user