Newer
Older
HoloAnatomy / Assets / HoloToolkit / Sharing / Scripts / Unity / DefaultSyncModelAccessor.cs
SURFACEBOOK2\jackwynne on 25 May 2018 706 bytes v1
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using UnityEngine;
using HoloToolkit.Sharing.SyncModel;

namespace HoloToolkit.Sharing
{
    /// <summary>
    /// Default implementation of a MonoBehaviour that allows other components of a game object access the shared data model
    /// as a raw SyncObject instance.
    /// </summary>
    public class DefaultSyncModelAccessor : MonoBehaviour, ISyncModelAccessor
    {
        public SyncObject SyncModel { get; private set; }

        public void SetSyncModel(SyncObject syncObject)
        {
            SyncModel = syncObject;
        }
    }
}