feedback report 3 done
This commit is contained in:
@@ -46,6 +46,7 @@ public class GameCanvas : MonoBehaviour
|
||||
public GameObject waitingForOpponentPanel;
|
||||
public GameObject timeoutForOpponentPanel;
|
||||
public Button btnLeaveGame;
|
||||
public Button btnLeavePrematureGame;
|
||||
|
||||
[Header("Emotes")]
|
||||
public Button btnEmote;
|
||||
@@ -70,6 +71,12 @@ public class GameCanvas : MonoBehaviour
|
||||
if (btnLeaveGame != null)
|
||||
btnLeaveGame.onClick.AddListener(OnLeaveGamePressed);
|
||||
|
||||
if (btnLeavePrematureGame == null && timeoutForOpponentPanel != null)
|
||||
btnLeavePrematureGame = timeoutForOpponentPanel.GetComponentInChildren<Button>(true);
|
||||
|
||||
if (btnLeavePrematureGame != null)
|
||||
btnLeavePrematureGame.onClick.AddListener(ConfirmLeaveMatch);
|
||||
|
||||
if(btnEmote != null)
|
||||
btnEmote.onClick.AddListener(OnEmotePressed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user