Exemplo n.º 1
0
        void LoadGlbModelsDone(IMessage msg)
        {
            GlbSceneObjectFile newglb = msg.Data as GlbSceneObjectFile;

            if (newglb.sign == Glb_sign.Value)
            {
                Load_GlbGameObject.Value            = newglb.glbobj;
                Load_GlbAnimationClips.stringValues = newglb.clips.ToArray();
                Fsm.Event(LoadGlbObjectDone);
            }
        }
Exemplo n.º 2
0
        void LoadGlbModelsDone(IMessage msg)
        {
            GlbSceneObjectFile newglb = msg.Data as GlbSceneObjectFile;

            if (!OnlyGetKodGlb.Value || (OnlyGetKodGlb.Value && newglb.LoadTrasform != null))
            {
                GlbSign.Value                  = newglb.sign;
                GlbGameObject.Value            = newglb.glbobj;
                IsScene.Value                  = newglb.isscene;
                GlbAnimationClips.stringValues = newglb.clips.ToArray();
                LoadTransformObject.Value      = newglb.LoadTrasform.gameObject;

                Fsm.Event(LoadGlbObjectDone);
            }
        }