Example #1
0
    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
                )
            );
    }
Example #2
0
 public void registerTransformChange(TransformChange tcl)
 {
     TransformChangeListeners.Add(tcl);
 }