Subversion Repository Public Repository

Nextrek

Diff Revisions 161 vs 162 for /3DSpace/Assets/Custum/Scripts/Loading.cs

Diff revisions: vs.
  @@ -4,34 +4,24 @@
4 4 public class Loading : MonoBehaviour
5 5 {
6 6 public static string loadName = "SpaceScene";
7 - public aim_movement[] aims;
8 7 AsyncOperation async;
8 + static float t = 0;
9 9 void Start()
10 10 {
11 11 StartCoroutine(loadScene());
12 12 }
13 13 IEnumerator loadScene()
14 14 {
15 +
16 + yield return new WaitForSeconds(25);
17 + //Debug.Log("Start Load");
15 18 async = Application.LoadLevelAsync(loadName);
16 19 yield return async;
20 +
17 21 }
18 22
19 23 void Update()
20 24 {
21 - Debug.Log("Update");
22 - for(int i=0;i<aims.Length;i++)
23 - {
24 - aims[i].UpdateRotate();
25 - }
26 - }
27 - /*
28 - void DrawAnimation()
29 - {
30 - label.text = "[FFFFFF]% "+(int)Mathf.Min((async.progress*100)+10,100);
31 - progressBar.localScale = new Vector3(
32 - async.progress*totleSize,
33 - 40,
34 - 1);
25 + //if(async!=null)Debug.Log("Loaded:"+async.progress);
35 26 }
36 - */
37 27 }