Subversion Repository Public Repository

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
32
33
34
35
using UnityEngine;
using System.Collections;

public class SuCameraAnimation1 : MonoBehaviour {

	public GameObject mainCamera;
	public GameObject star;
	
	private float tempoVisualizzazione = 7.5f;
	private float temp1= 2F;
	private float temp2= 4F;
	private float temp3= 6F;
	
	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		tempoVisualizzazione -= Time.deltaTime;
		if (tempoVisualizzazione < 0) {
			mainCamera.SetActive(true);
			this.gameObject.SetActive(false);
		}
		if(temp1 < 0)
		  star.particleSystem.startSize = 250;

		if(temp2 < 0)
			star.particleSystem.startSize = 300;

		if(temp3 < 0)
			star.particleSystem.startSize = 250;
	}	
}

Commits for Nextrek/3DSpace/Assets/SpaceUnity/Scripts/SuCameraAnimation1.cs

Diff revisions: vs.
Revision Author Commited Message
164 LMancini picture LMancini Wed 01 Apr, 2015 16:20:39 +0000