Skip to content

Commit 7b321a6

Browse files
committed
adding comments
1 parent 1e07909 commit 7b321a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Scripts/ConnectionManagement/ConnectionState/OnlineState.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ abstract class OnlineState : ConnectionState
88

99
public override void OnUserRequestedShutdown()
1010
{
11+
// This behaviour will be the same for every online state
1112
m_ConnectStatusPublisher.Publish(ConnectStatus.UserRequestedDisconnect);
1213
m_ConnectionManager.ChangeState(m_ConnectionManager.m_Offline);
1314
}
1415

1516
public override void OnTransportFailure()
1617
{
18+
// This behaviour will be the same for every online state
1719
m_ConnectionManager.ChangeState(m_ConnectionManager.m_Offline);
1820
}
1921
}

0 commit comments

Comments
 (0)