Working on quests, moved to CineMachine for camera and started to build out areas, started combat system
This commit is contained in:
@@ -4,8 +4,10 @@ public class Player : Character
|
||||
{
|
||||
public static Player current { get; private set; }
|
||||
|
||||
void Awake()
|
||||
protected override void Awake()
|
||||
{
|
||||
base.Awake(); // IMPORTANT: Initialize animator and parameters
|
||||
|
||||
if (current != null && current != this)
|
||||
{
|
||||
Debug.LogWarning("Multiple Player instances detected. Destroying duplicate.", gameObject);
|
||||
|
||||
Reference in New Issue
Block a user