//SoundPlayerScript SPS; //bool CanStepSound; //int StepCounter; // Use this for initialization void Start() { //CanStepSound = true; //StepCounter = 0; //SPS = GameObject.Find ("Main Camera").GetComponent<SoundPlayerScript> (); PauseScript = GameObject.Find("PauseMenuComponent").GetComponent <UIPauseMenuScript>(); ES = GameObject.Find("EternalHolder").GetComponent <EternalScript> (); RB = GetComponent <Rigidbody2D> (); LR = GetComponent <LineRenderer> (); RS = GameObject.Find("RespawnObject").GetComponent <RespawnScript>(); PauseScript.SetPlayer(PlayerNumber, this); AimingCursor.SetActive(false); ReticleRB = AimingCursor.GetComponent <Rigidbody2D> (); AimingCursor.GetComponent <SpriteRenderer> ().color = GetComponent <SpriteRenderer> ().color; Color C = ES.GetColor(PlayerNumber); C.r += .2f; C.g += .2f; C.b += .2f; Color C2 = C; C2.a = .2f; LR.SetColors(C, C2); currentRot = Quaternion.identity; if (BounceReticle) { LR.SetVertexCount(4); } }
//SoundPlayerScript SPS; //bool CanStepSound; //int StepCounter; // Use this for initialization void Start() { //CanStepSound = true; //StepCounter = 0; //SPS = GameObject.Find ("Main Camera").GetComponent<SoundPlayerScript> (); PauseScript = GameObject.Find("PauseMenuComponent").GetComponent <UIPauseMenuScript>(); RB = GetComponent <Rigidbody2D> (); LR = GetComponent <LineRenderer> (); RS = GameObject.Find("RespawnObject").GetComponent <RespawnScript>(); //PauseScript.SetPlayer (PlayerNumber, this); AimingCursor.SetActive(false); ReticleRB = AimingCursor.GetComponent <Rigidbody2D> (); AimingCursor.GetComponent <SpriteRenderer> ().color = GetComponent <SpriteRenderer> ().color; }