public void InitializePlayer(PlayerView playerPrefab, Vector3 position, float speed) { view = PhotonNetwork.Instantiate("Player_Pad", position, Quaternion.identity).GetComponent <PlayerView>(); view.SetController(this); // view.SetSpeed(speed); }