Subversion Repository Public Repository

Nextrek

Diff Revisions 146 vs 147 for /3DSpace/Assets/Custum/Scripts/CommunicationCenter.cs

Diff revisions: vs.
  @@ -12,6 +12,8 @@
12 12 public GameObject smallCameraNemico;
13 13 public GameObject smallCameraInizio2;
14 14 public GameObject smallCameraInizio3;
15 + public GameObject followCamera;
16 + public GameObject player;
15 17
16 18 private string missionName;
17 19 private string description;
  @@ -175,6 +177,8 @@
175 177 if (cmp != null)
176 178 {
177 179 MessageWindow.Instance.NewMessage(cmp.getPilotName() + " enemy's ship has been destroyed!");
180 + followCamera.animation.Play ();
181 +
178 182 }
179 183 EnemyPool.Instance.DestroyOneEnemy(enemy);
180 184 haveToKill--;
  @@ -186,6 +190,7 @@
186 190
187 191 //AllyPool.Instance.DestroyOneAlly(ally);
188 192 MessageWindow.Instance.NewMessage("An ally ship has been destroyed!");
193 + followCamera.animation.Play ();
189 194 //haveToKill--;
190 195 }
191 196
  @@ -196,6 +201,7 @@
196 201 if (cmp != null)
197 202 {
198 203 MessageWindow.Instance.NewMessage(cmp.getPilotName() + " enemy's ship has been destroyed by an ally!");
204 + followCamera.animation.Play ();
199 205 }
200 206
201 207 EnemyPool.Instance.DestroyOneEnemy(enemy);