浏览代码
WIP: Torn out LobbyUserObserver and LocalobbyObserver.
WIP: Torn out LobbyUserObserver and LocalobbyObserver.
At least getting local Lobby Changes./main/staging/2021_Upgrade/Async_Refactor
当前提交
f73d89e6
共有 32 个文件被更改,包括 258 次插入 和 257 次删除
-
54Assets/Prefabs/UI/UserCardPanel.prefab
-
17Assets/Scenes/mainScene.unity
-
214Assets/Scripts/GameLobby/Game/GameManager.cs
-
11Assets/Scripts/GameLobby/Game/LocalLobby.cs
-
2Assets/Scripts/GameLobby/Game/LocalLobbyList.cs
-
9Assets/Scripts/GameLobby/Game/LocalPlayer.cs
-
4Assets/Scripts/GameLobby/Infrastructure/Actionvalue.cs
-
1Assets/Scripts/GameLobby/Lobby/LobbyManager.cs
-
4Assets/Scripts/GameLobby/Lobby/LobbySynchronizer.cs
-
19Assets/Scripts/GameLobby/NGO/SetupInGame.cs
-
15Assets/Scripts/GameLobby/Relay/RelayUtpClient.cs
-
14Assets/Scripts/GameLobby/Relay/RelayUtpHost.cs
-
16Assets/Scripts/GameLobby/Relay/RelayUtpSetup.cs
-
4Assets/Scripts/GameLobby/Tests/Editor/MessengerTests.cs
-
6Assets/Scripts/GameLobby/UI/BackButtonUI.cs
-
4Assets/Scripts/GameLobby/UI/CreateMenuUI.cs
-
5Assets/Scripts/GameLobby/UI/EmoteButtonUI.cs
-
6Assets/Scripts/GameLobby/UI/EndGameButtonUI.cs
-
2Assets/Scripts/GameLobby/UI/GameStateVisibilityUI.cs
-
11Assets/Scripts/GameLobby/UI/JoinMenuUI.cs
-
21Assets/Scripts/GameLobby/UI/LobbyButtonUI.cs
-
2Assets/Scripts/GameLobby/UI/NameChangeUI.cs
-
4Assets/Scripts/GameLobby/UI/ReadyCheckUI.cs
-
4Assets/Scripts/GameLobby/UI/ShowWhenLobbyStateUI.cs
-
6Assets/Scripts/GameLobby/UI/StartLobbyButtonUI.cs
-
2Assets/Scripts/GameLobby/UI/UserNameUI.cs
-
2Assets/Scripts/GameLobby/UI/UserStateVisibilityUI.cs
-
18ProjectSettings/ProjectSettings.asset
-
11Assets/Scripts/GameLobby/Game/LobbyUserObserver.cs.meta
-
11Assets/Scripts/GameLobby/Game/LocalLobbyObserver.cs.meta
-
8Assets/Scripts/GameLobby/Game/LobbyUserObserver.cs
-
8Assets/Scripts/GameLobby/Game/LocalLobbyObserver.cs
|
|||
using UnityEngine; |
|||
|
|||
public class EndGameButtonUI : MonoBehaviour |
|||
public class EndGameButtonUI : UIPanelBase |
|||
Locator.Get.Messenger.OnReceiveMessage(MessageType.EndGame, null); |
|||
Manager.EndGame(); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: a03b37d5b8df06948b36dfbc430a1ea5 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 70dfc2fde0a9ef04eaff29a138f0bf45 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
namespace LobbyRelaySample |
|||
{ |
|||
/// <summary>
|
|||
/// Holds a LocalPlayer value and notifies all subscribers when it has been changed.
|
|||
/// Check the GameManager in the mainScene for the list of observers being used in the project.
|
|||
/// </summary>
|
|||
public class LobbyUserObserver : ObserverBehaviour<LocalPlayer> { } |
|||
} |
|
|||
namespace LobbyRelaySample |
|||
{ |
|||
/// <summary>
|
|||
/// Holds a LocalLobby value and notifies all subscribers when it has been changed.
|
|||
/// Check the GameManager in the mainScene for the list of observers being used in the project.
|
|||
/// </summary>
|
|||
public class LocalLobbyObserver : ObserverBehaviour<LocalLobby> { } |
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue