public void AddToSpawnList() { if (prefab) { //if (PrefabUtility.GetPrefabType(prefab) != PrefabType.Prefab) //{ // Debug.Log("GameObject Prefab required for " + typeof(SpawnObject).Name + "."); // prefab = null; //} //else //{ NSTNetAdapter.AddAsRegisteredPrefab(prefab, false, false); } //} }
public static float GetRTT(NSTNetAdapter na) { int id = na.ClientId; return(RTT.ContainsKey(id) ? RTT[id] : 0); }