Nextrek
Diff Revisions
148
vs
149
for /3DSpace/Assets/Custum/Scripts/CommunicationCenter.cs
|
@@ -39,6 +39,8 @@ |
39 |
39 |
|
public float tempoCamera3 = 12.5f; |
40 |
40 |
|
|
41 |
41 |
|
private static float BLAST_RANGE = 500.0f; |
|
42 |
+ |
private static float BLAST_RANGE1 = 1000.0f; |
|
43 |
+ |
private static float BLAST_RANGE2 = 2000.0f; |
42 |
44 |
|
|
43 |
45 |
|
private TimeWindow timeWindow; |
44 |
46 |
|
|
|
@@ -175,8 +177,20 @@ |
175 |
177 |
|
{ |
176 |
178 |
|
if (Vector3.Distance(GameManager.GetHero().position, destroyedShip.transform.position) < BLAST_RANGE) |
177 |
179 |
|
{ |
178 |
|
- |
followCamera.animation.Play (); |
|
180 |
+ |
followCamera.animation.Play("EsplosioneCamera1"); |
179 |
181 |
|
} |
|
182 |
+ |
|
|
183 |
+ |
if (Vector3.Distance(GameManager.GetHero().position, destroyedShip.transform.position) > BLAST_RANGE && Vector3.Distance(GameManager.GetHero().position, destroyedShip.transform.position) < BLAST_RANGE1 ) |
|
184 |
+ |
{ |
|
185 |
+ |
followCamera.animation.Play("EsplosioneCamera2"); |
|
186 |
+ |
} |
|
187 |
+ |
|
|
188 |
+ |
if (Vector3.Distance(GameManager.GetHero().position, destroyedShip.transform.position) > BLAST_RANGE1 && Vector3.Distance(GameManager.GetHero().position, destroyedShip.transform.position) < BLAST_RANGE2 ) |
|
189 |
+ |
{ |
|
190 |
+ |
followCamera.animation.Play("EsplosioneCamera3"); |
|
191 |
+ |
} |
|
192 |
+ |
|
|
193 |
+ |
|
180 |
194 |
|
} |
181 |
195 |
|
|
182 |
196 |
|
public void DestroyOneEnemy(GameObject enemy) |