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.

43 lines
838 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MultiplayerSettings : MonoBehaviour {
public static MultiplayerSettings Instance {
get;
set;
}
[Header("Room Settings")]
[Tooltip("Maximum amount of players in one room")]
public int maxPlayers;
[Tooltip("Minimum amount of players in one room")]
public int minPlayers;
[Tooltip("Time for the starting countdown in seconds")]
public int startTime;
[Header("Game Settings")]
[Tooltip("Send rate in packages per second")]
public int sendRate;
[Tooltip("Serialization rate for PhotonViews in packages per second")]
public int serializationRate;
void Awake() {
//Manage Singleton
if (Instance != null && Instance != this)
Destroy(gameObject);
else
Instance = this;
DontDestroyOnLoad(gameObject);
}
}