Nextrek
Diff Revisions
167
vs
168
for /3DSpace/Assets/SpaceUnity/_Demo/Scrips/SU_CameraAnimazione.cs
|
@@ -51,12 +51,12 @@ |
51 |
51 |
|
|
52 |
52 |
|
if (tempoCamera3 < -3) { |
53 |
53 |
|
ShowDialogo2(false); |
54 |
|
- |
thurster.particleSystem.startSize = 14 ; |
55 |
|
- |
thurster.particleSystem.startLifetime = 2.5f; |
56 |
|
- |
thurster.particleSystem.startSpeed = 30; |
57 |
|
- |
thurster2.particleSystem.startSize = 14; |
58 |
|
- |
thurster2.particleSystem.startLifetime = 2.5f; |
59 |
|
- |
thurster2.particleSystem.startSpeed = 30; |
|
54 |
+ |
thurster.GetComponent<ParticleSystem>().startSize = 14 ; |
|
55 |
+ |
thurster.GetComponent<ParticleSystem>().startLifetime = 2.5f; |
|
56 |
+ |
thurster.GetComponent<ParticleSystem>().startSpeed = 30; |
|
57 |
+ |
thurster2.GetComponent<ParticleSystem>().startSize = 14; |
|
58 |
+ |
thurster2.GetComponent<ParticleSystem>().startLifetime = 2.5f; |
|
59 |
+ |
thurster2.GetComponent<ParticleSystem>().startSpeed = 30; |
60 |
60 |
|
spaceship.transform.position += new Vector3 (30*Time.deltaTime, 2*Time.deltaTime, 0); |
61 |
61 |
|
} |
62 |
62 |
|
|