Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
using UnityEngine;
using System.Collections;
public class SuCameraAnimazione : MonoBehaviour {
public GameObject mainCamera;
public GameObject enemy1;
public GameObject enemy2;
public GameObject enemy3;
private float tempoVisualizzazione = 7f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
enemy1.transform.localPosition += new Vector3(70*Time.deltaTime, 0, 0);
enemy2.transform.localPosition += new Vector3(30*Time.deltaTime, 0, 0);
enemy3.transform.localPosition += new Vector3(50*Time.deltaTime, 0, 0);
tempoVisualizzazione -= Time.deltaTime;
if (tempoVisualizzazione < 0) {
mainCamera.SetActive(true);
this.gameObject.SetActive(false);
}
}
}
|
Revision |
Author |
Commited |
Message |
146
|
LMancini
|
Wed 19 Nov, 2014 17:44:49 +0000 |
|