Initial commit
This commit is contained in:
23
Assets/Scripts/Player.cs
Normal file
23
Assets/Scripts/Player.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class Player : Character
|
||||
{
|
||||
public static Player Current;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
Current = this;
|
||||
}
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
if (Current == this) Current = null;
|
||||
}
|
||||
|
||||
// Example hook for when a target is set
|
||||
public override void Die()
|
||||
{
|
||||
base.Die();
|
||||
// add player-specific death logic here
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user