change: input dialogue on player spawn
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using Reset;
|
||||
using Reset.Core.Tools;
|
||||
using UnityEngine;
|
||||
using Sirenix.OdinInspector;
|
||||
|
||||
@@ -8,12 +10,15 @@ public class Player : MonoBehaviour{
|
||||
[HideInInspector] public new PlayerCamera camera;
|
||||
|
||||
void Awake(){
|
||||
GameManager.Player = gameObject;
|
||||
controls = GetComponent<PlayerControls>();
|
||||
GameManager.RequestNewController();
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
||||
Debug.Log(GameManager.Player);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
||||
Reference in New Issue
Block a user