public void Start() { fireCommand = gameObject.GetComponent<FireCommand> (); objectFire = fireCommand.objectFire.GetComponent<BubbleObj>(); gameController = GameController.Instance (); actualBubble = GameObject.FindGameObjectWithTag ("ActualBubble").GetComponent<BubbleObj>(); nextBubble = GameObject.FindGameObjectWithTag ("NextBubble").GetComponent<BubbleObj>(); actualBubble.bubbleColor = Enums.getRandomBubbleColor (); nextBubble.bubbleColor = Enums.getRandomBubbleColor (); }
public void addVisible(BubbleObj a) { visibles.Add (a); }