Exemplo n.º 1
0
	// Use this for initialization
	void Start () {
		BulletCD.value = 0f;
		RocketCD.value = 0f;
		RadarCD.value = 0f;
		aud = this.gameObject.GetComponent<AudControl>();
		radar.enabled = false;
	}
Exemplo n.º 2
0
	// Use this for initialization
	void Start () {
		finished = GameOverScreen.GetComponent<Clock> ();
		WarpCD.value = 0f;
		TimeCD.value = 0f;
		Wspeed = 50f;
		aud = this.gameObject.GetComponent<AudControl> ();
	}
Exemplo n.º 3
0
	// Use this for initialization
	void Start () {
		hunt = this.gameObject.GetComponent<HunterProjs>();
		PlayerPrefs.SetFloat ("Speed", 1.0f);
		//print (Input.GetJoystickNames().GetValue());
		pnum = (this.tag == "Hunter") ? "" : "P2";
		if (pnum == "P2") {
			stats = this.gameObject.GetComponent<PlayerStats>();
		}
		cam = GameObject.FindGameObjectWithTag ((pnum == "P2") ? "RunnerCam" : "MainCamera").GetComponent<Camera>();
		aud = this.gameObject.GetComponent<AudControl>();
	}