예제 #1
0
        public static Collab.CollabStates GetAssetState(String assetGuid)
        {
            if (!Collab.instance.IsCollabEnabledForCurrentProject())
            {
                return(Collab.CollabStates.kCollabNone);
            }

            Collab.CollabStates assetState = Collab.GetAssetState(assetGuid, AssetDatabase.GUIDToAssetPath(assetGuid));
            return(assetState);
        }
 public static void OnProjectWindowItemIconOverlay(string guid, Rect drawRect)
 {
     if (CollabAccess.Instance.IsServiceEnabled() && UnityConnect.instance.userInfo.whitelisted)
     {
         Collab instance = Collab.instance;
         if (instance.collabInfo.whitelisted)
         {
             Overlay.DrawOverlays(instance.GetAssetState(guid), drawRect);
         }
     }
 }
예제 #3
0
        public static void OnProjectWindowItemIconOverlay(string guid, Rect drawRect)
        {
            bool flag = CollabAccess.Instance.IsServiceEnabled();

            if (flag)
            {
                Collab instance = Collab.instance;
                Collab.CollabStates assetState = instance.GetAssetState(guid);
                Overlay.DrawOverlays(assetState, drawRect);
            }
        }