public void Open_ConnectingScreen(ClientType type)
        {
            Logo.Disable();
            imgteste.Disable();
            debugText.Disable();
            VersionText.Disable();
            DarkcomsoftCopy.Disable();
            PlaySingleButtom.Disable();
            PlayMultiButtom.Disable();
            QuitButtom.Disable();

            connectionBackgorund.Enable();
            connectionTextInfo.Enable();

            switch (type)
            {
            case ClientType.SinglePlayer:
                connectionTextInfo.SetText("Starting SinglePlayer Server...");
                break;

            case ClientType.Multiplayer:
                connectionTextInfo.SetText("Connecting To Server...");
                break;
            }
        }
        public override void Tick()
        {
#if Client
            if (_playerController != null)
            {
                _playerController.UpdateController();
            }

            if (isMine)//if this is my
            {
                //RPC("RPC_SyncPosition", ProjectEvlly.src.Net.RPCMode.AllNoOwner, transform.Position, transform.Rotation);

                CurrentBlock = Game.GetWorld.GetTileAt(transform.Position.X, transform.Position.Z);
                PlayerPosition.SetText(string.Format("Position({0})", transform.Position.ToString()));
                BlockInfo.SetText(string.Format("Block:{0}", CurrentBlock.ToString()));
            }
            else
            {
            }
#elif Server
#endif
            base.Tick();
        }
Exemple #3
0
        public void Tick()
        {
            debugText.SetText(string.Format("FPS:({0})  UPS:({1})  Tick%60:({2})  Time:({3})", Time.FPS, Time.UPS, Time._Tick, Time._Time));

            MenusInput();
        }