예제 #1
0
        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();
        }
예제 #2
0
 private void OnComponentDestroy(INetObject obj)
 {
 }
예제 #3
0
 private void OnComponentCreate(INetObject obj)
 {
 }
예제 #4
0
 private void OnComponentUpdate(INetObject netObj, NetUpdate update)
 {
     listeners.NotifyListeners(update);
 }