static void OnTransformChangeOnNetwork(object obj) { TransformChangeMessage message = obj as TransformChangeMessage; // TODO: maybe stop allocating so many of these if we're going to do this at 60fps. TransformChange?.Invoke( null, new TransformChangeEventArgs( message.ModelIdentifier, message.Scale, message.Rotation, message.Translation ) ); }
public void registerTransformChange(TransformChange tcl) { TransformChangeListeners.Add(tcl); }