public void SetNetObject(INetObject obj) { netObj = obj; netObj.GameObject = gameObject; // Transfer stored registrations to INetObject foreach (var type in registries.Keys) { var actions = registries[type]; netObj.RegisterChild(type, (Action <INetObject>)actions[0], (Action <INetObject, NetUpdate>)actions[1], (Action <INetObject>)actions[2] ); } registries.Clear(); }
private void OnComponentDestroy(INetObject obj) { }
private void OnComponentCreate(INetObject obj) { }
private void OnComponentUpdate(INetObject netObj, NetUpdate update) { listeners.NotifyListeners(update); }