コード例 #1
0
 private void LivesManager_LivesChanged(bool gained, int newLives)
 {
     UnityMainThreadDispatcher.Instance().Enqueue(() => SetupButtons());
 }
コード例 #2
0
ファイル: ChatFlow.cs プロジェクト: gallun320/tcpChatUnity
 private void Logout()
 {
     Debug.Log("Logout");
     UnityMainThreadDispatcher.Instance().Enqueue(() => _textComponent.text = "LogoutComplete");
 }
コード例 #3
0
ファイル: ChatFlow.cs プロジェクト: gallun320/tcpChatUnity
 private void LoginError(string error)
 {
     Debug.LogError(error);
     UnityMainThreadDispatcher.Instance().Enqueue(() => _textComponent.text = "LoginError");
 }
コード例 #4
0
ファイル: ChatFlow.cs プロジェクト: gallun320/tcpChatUnity
 private void Members(string obj)
 {
     Debug.Log("Members");
     UnityMainThreadDispatcher.Instance().Enqueue(() => _textComponent.text = obj);
 }
コード例 #5
0
 void OnDestroy()
 {
     _instance = null;
 }
コード例 #6
0
 private void LivesManager_LivesChanged(bool gained, int newLives)
 {
     UnityMainThreadDispatcher.Instance().Enqueue(() => UpdateHeartDisplay(gained, newLives));
 }