Game/Assets/Scripts/Network/MyNetworkManager.cs
/// <summary>
/// Loads the listeners for the buttons on the menu screen
/// </summary>
/// <returns></returns>
Loads the listeners for the buttons on the menu screen
Loads the listeners for the buttons on the menu screen
private IEnumerator LoadMenuButtons()
    {
        yield return new WaitForSeconds(0.5f);
        GameObject.Find("button_StartHost").GetComponent<Button>().onClick.RemoveAllListeners();
        GameObject.Find("button_StartHost").GetComponent<Button>().onClick.AddListener(HostGame);
        GameObject.Find("button_JoinMatch").GetComponent<Button>().onClick.RemoveAllListeners();
        GameObject.Find("button_JoinMatch").GetComponent<Button>().onClick.AddListener(JoinGame);
    }
private IEnumerator LoadMenuButtons ( ) { yield return new WaitForSeconds ( 0.5f ) ; GameObject . Find ( " " ) . GetComponent < Button > ( ) . onClick . RemoveAllListeners ( ) ; GameObject . Find ( " " ) . GetComponent < Button > ( ) . onClick . AddListener ( HostGame ) ; GameObject . Find ( " " ) . GetComponent < Button > ( ) . onClick . RemoveAllListeners ( ) ; GameObject . Find ( " " ) . GetComponent < Button > ( ) . onClick . AddListener ( JoinGame ) ; }
Loads the listeners for the buttons on the menu screen
Loads the listeners for the buttons on the menu screen
// Prevents a conflict with network managers on the menu screen
None