Beispiel #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();
            }
        }
        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;
        }
 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>());
 }
Beispiel #4
0
 void Start()
 {
     mySpace = new Spaces.Core.Space(mySpaceID);
     mySpace.Enter();
 }