suriyun-production / battle-io-docs

This is document for Battle IO project (https://www.assetstore.unity3d.com/#!/content/101113?aid=1100lGeN)
https://suriyun-production.github.io/battle-io-docs/
1 stars 0 forks source link

ClearTeams and Some objects were not cleaned up when closing the scene #17

Closed TemhemKaya closed 4 years ago

TemhemKaya commented 4 years ago

Exit button click error. Please help me

https://prnt.sc/sn24yk https://prnt.sc/sn2586

TemhemKaya commented 4 years ago

@insthync

insthync commented 4 years ago

This error won't affect gameplay, and the codes that cause error is Photon's codes, you actually can avoid it and error messages by just add null check at top of ClearTeams function

PhotonTeamsManager.cs

        private void ClearTeams()
        {
            if (playersPerTeam == null)
                return;
            foreach (var key in playersPerTeam.Keys)
            {
                playersPerTeam[key].Clear();
            }
        }
TemhemKaya commented 4 years ago

@insthync Thank you :) 1 more error : black fade not fade out when start game sometime... error uncorrected 1.24

insthync commented 4 years ago

Don't fade means that it's black?

TemhemKaya commented 4 years ago

loading screen does not appear. Create game button and http://prntscr.com/snlr1x then game screen

insthync commented 4 years ago

I did not make the loading screen

Vauxvogh commented 4 years ago

Hey you could simply call in the button events on the "create game button" to set active the loading object under "UINetworkClientErrorAndLoadingCanvas" and it will show a loading screen while the match loads, it will disappear when you get into the match. This is not an actual loading screen though but it looks good lol

Vauxvogh commented 4 years ago

it would be nice to have one though like the mmo kit does that actually shows the loading bar filling. If you're interested in adding one Suriyun. However its also not that hard to script in yourself

TemhemKaya commented 4 years ago

I am sorry for my English :/ I wanted to tell by video: https://streamable.com/eqewwq

TemhemKaya commented 4 years ago

Hey you could simply call in the button events on the "create game button" to set active the loading object under "UINetworkClientErrorAndLoadingCanvas" and it will show a loading screen while the match loads, it will disappear when you get into the match. This is not an actual loading screen though but it looks good lol

thank you