Exemplo n.º 1
0
        public void SetCurrentSpace(Spaces.Core.Space space)
        {
            if (m_currentSpace != space)
            {
                m_lastSpace    = m_currentSpace;
                m_currentSpace = space;

                //if (m_lastSpace != null)
                //    m_lastSpace.UnloadAssets();
            }
        }
Exemplo n.º 2
0
        public void Run(ref Spaces.Core.Space createdSpace, string spaceName, RestCreateSpaceCallback inCallback)
        {
            space      = createdSpace;
            space.name = spaceName;

            var data = new CreateSpaceData()
            {
                name = space.name
            };

            RestManager.Post(this, RestManager.Request.CREATE_SPACE, TinyJSON.Encoder.Encode(data, TinyJSON.EncodeOptions.NoTypeHints), CreateSpaceReply);
            doneCallback = inCallback;
        }
Exemplo n.º 3
0
 void SpaceEntry_Click(Spaces.Core.Space space)
 {
     //Debug.Log(this.name + " So, you'd like to visit " + space.name + " (" + space.id + ")? That sounds nice!");
     space.Enter(GameObject.FindObjectOfType <AvatarWidget>());
 }
Exemplo n.º 4
0
 void Start()
 {
     mySpace = new Spaces.Core.Space(mySpaceID);
     mySpace.Enter();
 }