// Use this for initialization void Start() { theNetwork = GameObject.Find("_SophieNet").GetComponent<SophieNetworkScript>(); transform.position = start; lastPos = start; detonationTime += Time.time; moveVector = direction * 23f; }
// Use this for initialization void Start() { theNetwork = GameObject.Find("_SophieNet").GetComponent <SophieNetworkScript>(); transform.position = start; lastPos = start; detonationTime += Time.time; moveVector = direction * 23f; }
// Use this for initialization void Start() { theNetwork = GameObject.Find("_SophieNet").GetComponent<SophieNetworkScript>(); sinny = Random.Range(0f,4f); boxObj.transform.Rotate(0,0, Random.Range(0f,360f)); }
// Use this for initialization void Start() { theNetwork = GameObject.Find("_SophieNet").GetComponent<SophieNetworkScript>(); gameObject.layer = 13; ResetBall(); }
void Start() { theNetwork = GetComponent <SophieNetworkScript>(); }
// Use this for initialization void Start() { theNetwork = GameObject.Find("_SophieNet").GetComponent<SophieNetworkScript>(); lastPos = transform.position; }
// Use this for initialization void Start() { theNetwork = GetComponent<SophieNetworkScript>(); }
// Use this for initialization void Start() { theNetwork = GameObject.Find("_SophieNet").GetComponent <SophieNetworkScript>(); gameObject.layer = 13; ResetBall(); }
// Use this for initialization void Start() { theNetwork = GameObject.Find("_SophieNet").GetComponent <SophieNetworkScript>(); sinny = Random.Range(0f, 4f); boxObj.transform.Rotate(0, 0, Random.Range(0f, 360f)); }
// Use this for initialization void Start() { theNetwork = GameObject.Find("_SophieNet").GetComponent <SophieNetworkScript>(); lastPos = transform.position; }
// Use this for initialization void Start() { theNetwork = GameObject.Find("_SophieNet").GetComponent<SophieNetworkScript>(); theGUI = GameObject.Find("_SophieNet").GetComponent<FPSGUI>(); artillery = GameObject.Find("_SophieNet").GetComponent<FPSArtillery>(); if (thisPlayer.local && theNetwork.gameSettings.pitchBlack){ Camera.main.backgroundColor = Color.black; RenderSettings.ambientLight = Color.black; } cc = GetComponent<CharacterController>(); if (thisPlayer.lives>=0){ if (isLocal){ SetModelVisibility(false); }else{ SetModelVisibility(true); } Respawn(); }else{ //we joined as a spectator SetModelVisibility(false); transform.position = -Vector3.up * 99f; } }
void Start() { theNetwork = GetComponent<SophieNetworkScript>(); messageScript = GetComponent<FPSMessages>(); artillery = GetComponent<FPSArtillery>(); //make local player theNetwork.localPlayer = new FPSPlayer(); theNetwork.localPlayer.local = true; theNetwork.localPlayer.name = PlayerPrefs.GetString("PlayerName", "Player Playerson"); theNetwork.localPlayer.headType = PlayerPrefs.GetInt("PlayerHead", 0); theNetwork.localPlayer.colA.r = PlayerPrefs.GetFloat("PlayerColA_R", Color.red.r); theNetwork.localPlayer.colA.g = PlayerPrefs.GetFloat("PlayerColA_G", Color.red.g); theNetwork.localPlayer.colA.b = PlayerPrefs.GetFloat("PlayerColA_B", Color.red.b); theNetwork.localPlayer.colA.a = 1; theNetwork.localPlayer.colB.r = PlayerPrefs.GetFloat("PlayerColB_R", Color.green.r); theNetwork.localPlayer.colB.g = PlayerPrefs.GetFloat("PlayerColB_G", Color.green.g); theNetwork.localPlayer.colB.b = PlayerPrefs.GetFloat("PlayerColB_B", Color.green.b); theNetwork.localPlayer.colB.a = 1; theNetwork.localPlayer.colC.r = PlayerPrefs.GetFloat("PlayerColC_R", Color.cyan.r); theNetwork.localPlayer.colC.g = PlayerPrefs.GetFloat("PlayerColC_G", Color.cyan.g); theNetwork.localPlayer.colC.b = PlayerPrefs.GetFloat("PlayerColC_B", Color.cyan.b); theNetwork.localPlayer.colC.a = 1; //load settings invX = PlayerPrefs.GetInt("InvertX", 0) == 1; invY = PlayerPrefs.GetInt("InvertY", 0) == 1; mouseSensitivity = PlayerPrefs.GetFloat("MouseSensitivity", 2f); messageScript.textFadeTime = PlayerPrefs.GetFloat("textFadeTime", 10f); theNetwork.gunBobbing = PlayerPrefs.GetInt("GunBobbing",1)==1; theNetwork.autoPickup = PlayerPrefs.GetInt("autoPickup",0)==1; theNetwork.autoPickupHealth = PlayerPrefs.GetInt("autoPickupHealth",0)==1; theNetwork.announcer = PlayerPrefs.GetInt("announcer", 1)==1; theNetwork.autoSwitch = PlayerPrefs.GetInt ("autoSwitch",0)==1; theNetwork.gameVolume = PlayerPrefs.GetFloat("GameVolume", 1f); }