StaticVariables.cs 382 B

12345678910111213
  1. using UnityEngine;
  2. namespace Mirror.Examples.CharacterSelection
  3. {
  4. // we will use static variables to pass data between scenes
  5. // this could also be done using other methods
  6. public class StaticVariables : MonoBehaviour
  7. {
  8. public static string playerName = "";
  9. public static int characterNumber = 0;
  10. public static Color characterColour;
  11. }
  12. }