public static string CreateBattleField(string hostId, string battleFieldName, RoomType roomType) { var battle = new BattleField(hostId, battleFieldName, roomType); BattleFieldSingleton.Instance.BattleFields.Add(battle); var battleWriter = new BattleWriter(); battleWriter.AddBattle(battle); return(battle.BattleId); }
void Awake() { s_Sigleton = this; }