예제 #1
0
 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);
     }
     //}
 }
예제 #2
0
    public static float GetRTT(NSTNetAdapter na)
    {
        int id = na.ClientId;

        return(RTT.ContainsKey(id) ? RTT[id] : 0);
    }