Пример #1
0
        private void ParseWorldEntered(Internal.ByteArray message)
        {
            bool hasLoginPendingFeature = OpenTibiaUnity.GameManager.GetFeature(GameFeature.GameLoginPending);

            if ((hasLoginPendingFeature && m_ConnectionState == ConnectionState.Pending) ||
                (!hasLoginPendingFeature && m_ConnectionState > ConnectionState.Disconnected && m_ConnectionState != ConnectionState.Game))
            {
                MiniMapStorage.Position  = Vector3Int.zero;
                WorldMapStorage.Position = Vector3Int.zero;
                WorldMapStorage.ResetMap();
                CreatureStorage.Reset();
                WorldMapStorage.Valid = false;
            }

            SetConnectionState(ConnectionState.Game);
        }