Subversion Repository Public Repository

Nextrek

Diff Revisions 140 vs 144 for /3DSpace/Assets/Custum/Scripts/CommunicationCenter.cs

Diff revisions: vs.
  @@ -10,6 +10,8 @@
10 10 public GameObject smallCamera2;
11 11 public GameObject smallCameraInizio;
12 12 public GameObject smallCameraNemico;
13 + public GameObject smallCameraInizio2;
14 + public GameObject smallCameraInizio3;
13 15
14 16 private string missionName;
15 17 private string description;
  @@ -28,7 +30,11 @@
28 30
29 31 private float smallCameraShowTime = 0;
30 32 private float smallCameraShowTime1 = 8;
33 + private float smallCameraShowTime2 = 13;
34 + private float smallCameraShowTime3 = 16;
31 35 public float tempoCameraNemico = 5f;
36 + public float tempoCamera2 = 7.5f;
37 + public float tempoCamera3 = 12.5f;
32 38
33 39 private TimeWindow timeWindow;
34 40
  @@ -126,13 +132,27 @@
126 132 {
127 133 smallCameraShowTime-=Time.deltaTime;
128 134 smallCameraShowTime1 -= Time.deltaTime;
135 + smallCameraShowTime2 -= Time.deltaTime;
136 + smallCameraShowTime3 -= Time.deltaTime;
129 137 tempoCameraNemico -= Time.deltaTime;
138 + tempoCamera2 -= Time.deltaTime;
139 + tempoCamera3 -= Time.deltaTime;
130 140
131 141 if (tempoCameraNemico < 0 && smallCameraShowTime1 > 0) {
132 142 ShowSmallCameraNemico (true);
133 143 } else
134 144 ShowSmallCameraNemico (false);;
135 145
146 + if (tempoCamera2 < 0 && smallCameraShowTime2 > 0) {
147 + ShowSmallCameraInizio2 (true);
148 + } else
149 + ShowSmallCameraInizio2 (false);
150 +
151 + if (tempoCamera3 < 0 && smallCameraShowTime3 > 0) {
152 + ShowSmallCameraInizio3(true);
153 + } else
154 + ShowSmallCameraInizio3(false);
155 +
136 156 if(smallCameraShowTime<0)
137 157 {
138 158 ShowSmallCamera(false);
  @@ -230,6 +250,22 @@
230 250 }
231 251 }
232 252
253 + public void ShowSmallCameraInizio2(bool show)
254 + {
255 + if(smallCameraInizio2.activeSelf!=show)
256 + {
257 + smallCameraInizio2.SetActive(show);
258 + }
259 + }
260 +
261 + public void ShowSmallCameraInizio3(bool show)
262 + {
263 + if(smallCameraInizio3.activeSelf!=show)
264 + {
265 + smallCameraInizio3.SetActive(show);
266 + }
267 + }
268 +
233 269 public void ShowSmallCameraNemico(bool show)
234 270 {
235 271 if(smallCameraNemico.activeSelf!=show)