// Use this for initialization void Start() { /* * cores = colors.Split (' '); * bubbles = new List<BubbleController> (); * bubbles.Add (Instantiate (bubblePrefab, new Vector3 (-100, -100, 0), Quaternion.identity) as BubbleController); * currentBubble = 0; * timeToCreateBubble = timesToBubbles [0]; * currentTime = 1; * if (timesToBubbles.Length > 0) * changeTime = cores.Length / timesToBubbles.Length; */ bubbleManager = GetComponent <BubbleLevelManager> (); if (typeLevel.Equals(GameSethings.levelType.LET_PRIMARY)) { timeToCreateBubble = timeToBubbles[0].x; timeToBubbles[0] = new Vector2(timeToBubbles[0].x, timeToBubbles[0].y - timeToBubbles[0].x); } else if (typeLevel.Equals(GameSethings.levelType.SURVIVOR) || typeLevel.Equals(GameSethings.levelType.BAIACU)) { timeToCreateBubble = timeToBubbles[0].x; timeToBubbles[0] = new Vector2(timeToBubbles[0].x, timeToBubbles[0].y - timeToBubbles[0].x); } }