Add new meta files and interfaces for project structure
This commit is contained in:
14
Assets/Scripts/Systems/PlayerDeathBehavior.cs
Normal file
14
Assets/Scripts/Systems/PlayerDeathBehavior.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Interfaces;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace Systems
|
||||
{
|
||||
public class PlayerDeathBehavior : MonoBehaviour, IDeathBehavior
|
||||
{
|
||||
public void Die()
|
||||
{
|
||||
SceneManager.LoadScene(SceneManager.GetActiveScene().name);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user