This error :
Assets/Multiplayer_manager.cs(58,9): error CS0428: Cannot convert method group GetComponent' to non-delegate type
UnityEngine.GameObject’. Consider using parentheses to invoke the method
using UnityEngine;
using System.Collections;
public class Multiplayer_manager : MonoBehaviour {
public static GameObject Myplayer;
public static GameObject Myplayer2;
void Start () {
GameObject Myplayer = GameObject.FindGameObjectWithTag ("Enemy");
Connect ();
}
void Connect() {
PhotonNetwork.ConnectUsingSettings( "V.02" );
}
void OnJoinedLobby() {
Debug.Log ("OnJoinedLobby");
PhotonNetwork.JoinRandomRoom ();
}
void Update () {
}
void CreateRoom () {
}
void OnPhotonCreateGameFailed() {
return;
}
void OnPhotonRandomJoinFailed() {
Debug.Log ("OnPhotonRandomJoinFailed");
PhotonNetwork.CreateRoom( null );
Debug.Log ("Roomname created");
}
void OnJoinedRoom() {
Debug.Log ("OnJoinedRoom");
Myplayer = Myplayer.GetComponent<Birdmovement>;
Debug.Log (Myplayer);
}
}