Global Game Jam 2021
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
680 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
[System.Serializable]
public class PlayerData : ScriptableObject
{
public static uint PlayerCount;
public uint ID { get; private set; }
public Color Color { get; private set; }
public UnityEngine.InputSystem.PlayerInput Input { get; private set; }
public static PlayerData Initialise(uint ID, Color color, UnityEngine.InputSystem.PlayerInput input)
{
PlayerData data = ScriptableObject.CreateInstance<PlayerData>();
data.Color = color;
data.ID = ID;
data.Input = input;
return data;
}
}