Exemple #1
0
    public void OnClickAcceptInvitation(string roomName)
    {
        OnlineMenuController onlineController = FindObjectOfType <OnlineMenuController>();

        onlineController.OnClickJoinInvitation(roomName);

        popupPanel.gameObject.SetActive(false);
    }
Exemple #2
0
    public void Awake()
    {
        if (instance == null || ReferenceEquals(this, instance))
        {
            instance = this;
        }
        else
        {
            Destroy(this);
        }

        Debug.Log("AWAKE!!!");
        PhotonNetwork.AutomaticallySyncScene = true;


        Debug.Log("Attempting to Start Connection");
        StartCoroutine(StartConnection());
        //
        //0DontDestroyOnLoad(this.gameObject);
    }
Exemple #3
0
 public void Awake()
 {
     controller = FindObjectOfType <OnlineMenuController>();
 }