Subversion Repository Public Repository

Nextrek

Diff Revisions 167 vs 168 for /3DSpace/Assets/SpaceUnity/_Demo/Scrips/SU_CameraAnimation1.cs

Diff revisions: vs.
  @@ -19,7 +19,7 @@
19 19 // Use this for initialization
20 20 void Start () {
21 21 spaceCamera.SetActive (true);
22 - audio.volume = 0.2F;
22 + GetComponent<AudioSource>().volume = 0.2F;
23 23 }
24 24
25 25 // Update is called once per frame
  @@ -53,14 +53,14 @@
53 53
54 54 if (tempoCamera3 < -3) {
55 55 ShowDialogo2(false);
56 - thurster.particleSystem.startSize = 14 ;
57 - thurster.particleSystem.startLifetime = 2.5f;
58 - thurster.particleSystem.startSpeed = 30;
59 - thurster2.particleSystem.startSize = 14;
60 - thurster2.particleSystem.startLifetime = 2.5f;
61 - thurster2.particleSystem.startSpeed = 30;
56 + thurster.GetComponent<ParticleSystem>().startSize = 14 ;
57 + thurster.GetComponent<ParticleSystem>().startLifetime = 2.5f;
58 + thurster.GetComponent<ParticleSystem>().startSpeed = 30;
59 + thurster2.GetComponent<ParticleSystem>().startSize = 14;
60 + thurster2.GetComponent<ParticleSystem>().startLifetime = 2.5f;
61 + thurster2.GetComponent<ParticleSystem>().startSpeed = 30;
62 62 spaceship.transform.position += new Vector3 (0, 2*Time.deltaTime, 18*Time.deltaTime);
63 - audio.volume = 1F;
63 + GetComponent<AudioSource>().volume = 1F;
64 64 }
65 65
66 66