Esempio n. 1
0
 public ActorComponent()
 {
     if (!activating)
     {
         _rpcTable = ObjectTypeRPCTable.instance.GetRPCTable(this);
     }
 }
Esempio n. 2
0
	public ObjectRPCTable GetRPCTable(SerializableObject obj) {
		ObjectRPCTable table;
		if (!rpcTables.TryGetValue(obj.classID, out table)) {
			table = new ObjectRPCTable(obj.serverType, obj.clientType);
			rpcTables[obj.classID] = table;
		}

		table.Validate(obj);

		return table;
	}