24 lines
424 B
C#
24 lines
424 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
|
|
namespace Player
|
|
{
|
|
[RequireComponent(typeof(PlayerInput))]
|
|
public class Player : MonoBehaviour
|
|
{
|
|
public int playerIndex;
|
|
public Pawn controlledPawn;
|
|
|
|
private void Awake()
|
|
{
|
|
DontDestroyOnLoad(gameObject);
|
|
}
|
|
|
|
public void Possess(Pawn pawn)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|