Help writing a script for multiply spawn points.

Hello guys. I’ve been working on a Multiplayer fps and i’ve been having some problems writing a script for multiple spawn locations.
I’m using the Photon Unity Networking but i have no clue how to fix these errors.
Here is the script i’ve written so far.
using UnityEngine;
using System.Collections;

public class NetworkManager : MonoBehaviour {

SpawnSpot[] spawnSpots;

// Use this for initialization
void Start () {
	 spawnSpots = GameObject.FindObjectsOfType<SpawnSpot>();
	Connect ();	

void Connect () {
	PhotonNetwork.ConnectUsingSettings("MultiFPS v001");

void OnGUI () {
	GUILayout.Label (PhotonNetwork.connectionStateDetailed.ToString () );

void OnJoinedLobby() {
	Debug.Log ("OnJoinedLobby");

void OnPhotonRandomJoinFailed() {
	Debug.Log ("OnPhotonRandomJoinFailed"); 
	PhotonNetwork.CreateRoom (null);

void OnJoinedRoom() {
	Debug.Log ("OnJoinedRoom");

	SpawnMyPlayer ();

void SpawnMyPlayer() {
	if (spawnSpots == null) {
		Debug.LogError ("WTF?!?!?");

	SpawnSpot mySpawnspot = spawnSpots[ Random.Range (0, spawnSpots.Length) ];
	PhotonNetwork.Instantiate ("Player", SpawnSpot.transform.position, mySpawnspot,transform.rotation, 0); 



I get these errors.

  1. Assets/NetworkManager.cs(46,64): error CS0120: An object reference is required to access non-static member `UnityEngine.Component.transform’

  2. Assets/NetworkManager.cs(46,31): error CS1502: The best overloaded method match for `PhotonNetwork.Instantiate(string, UnityEngine.Vector3, UnityEngine.Quaternion, int, object)’ has some invalid arguments

  3. Assets/NetworkManager.cs(46,31): error CS1503: Argument #2' cannot convert object’ expression to type `UnityEngine.Vector3’

Please help me out.