30 lines
566 B
C#
30 lines
566 B
C#
using System;
|
|
using Reset;
|
|
using Reset.Core.Tools;
|
|
using UnityEngine;
|
|
using Sirenix.OdinInspector;
|
|
|
|
|
|
public class Player : MonoBehaviour{
|
|
[HideInInspector] public PlayerControls controls;
|
|
[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
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|