Код: Выделить всё
public class Game : MonoBehaviour
{
public string Name { get; set;}
public int NumberOfPlayers { get; set; }
public int CurrentPlayers { get; set; }
public Game(string name, int num)
{
Name = name;
NumberOfPlayers = num;
CurrentPlayers = 0;
}
Код: Выделить всё
public static Game firstGame;
Подробнее здесь: https://stackoverflow.com/questions/359 ... networking
Мобильная версия