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

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.InputSystem;
  5. [System.Serializable]
  6. public class PlayerData : ScriptableObject
  7. {
  8. public static uint PlayerCount;
  9. public uint ID { get; private set; }
  10. public Color Color { get; private set; }
  11. public UnityEngine.InputSystem.PlayerInput Input { get; private set; }
  12. public static PlayerData Initialise(uint ID, Color color, UnityEngine.InputSystem.PlayerInput input)
  13. {
  14. PlayerData data = ScriptableObject.CreateInstance<PlayerData>();
  15. data.Color = color;
  16. data.ID = ID;
  17. data.Input = input;
  18. return data;
  19. }
  20. }