clearer naming
This commit is contained in:
parent
2a445343a2
commit
7d799457f6
@ -8,7 +8,8 @@ public class GameObjectRegistry : MonoBehaviour
|
|||||||
public static GameObjectRegistry instance; //instance of gameobject registry in scene
|
public static GameObjectRegistry instance; //instance of gameobject registry in scene
|
||||||
public string uuid; //unique identifier for this client
|
public string uuid; //unique identifier for this client
|
||||||
public List<GameObject> gameObjects; //list to make it easy to register new gameobjects
|
public List<GameObject> gameObjects; //list to make it easy to register new gameobjects
|
||||||
public List<string> ids;
|
public List<string> types;
|
||||||
|
|
||||||
|
|
||||||
public Dictionary<string, GameObject> registry = new Dictionary<string, GameObject>(); //registry of game objects that can be synced (needs to be identical on both clients
|
public Dictionary<string, GameObject> registry = new Dictionary<string, GameObject>(); //registry of game objects that can be synced (needs to be identical on both clients
|
||||||
public List<SyncData> registeredObjects = new List<SyncData>(); //game objcets that are currently being synced
|
public List<SyncData> registeredObjects = new List<SyncData>(); //game objcets that are currently being synced
|
||||||
@ -25,7 +26,7 @@ public class GameObjectRegistry : MonoBehaviour
|
|||||||
void initializeRegistry()
|
void initializeRegistry()
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
foreach (string id in ids)
|
foreach (string id in types)
|
||||||
{
|
{
|
||||||
registry.Add(id, gameObjects[i]);
|
registry.Add(id, gameObjects[i]);
|
||||||
i++;
|
i++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user