void Start() { //permulaan game scoreText = GameObject.Find("Score Text").GetComponent<TextMesh>(); jellyText = GameObject.Find("Jelly Text").GetComponent<TextMesh>(); initialObjectFallingDuration = objectFallingDuration; numberOfColumns = LevelStructure.instance.numberOfColumns; numberOfRows = LevelStructure.instance.numberOfRows; numberOfItemsPoppedInaRow = 0; StringPusher.addStringDependInt(scoreText, score, 6, "0"); scoreText.text += score.ToString(); jellyText.text = "Jelly : " + totalNoOfJellies.ToString(); cEC = GetComponent<CrushEffectCreator>(); }
void Start() { //permulaan game scoreText = GameObject.Find("Score Text").GetComponent <TextMesh>(); jellyText = GameObject.Find("Jelly Text").GetComponent <TextMesh>(); initialObjectFallingDuration = objectFallingDuration; numberOfColumns = LevelStructure.instance.numberOfColumns; numberOfRows = LevelStructure.instance.numberOfRows; numberOfItemsPoppedInaRow = 0; StringPusher.addStringDependInt(scoreText, score, 6, "0"); scoreText.text += score.ToString(); jellyText.text = "Jelly : " + totalNoOfJellies.ToString(); cEC = GetComponent <CrushEffectCreator>(); }