// Use this for initialization void Start() { scoreGUIText.fontSize = AppConstants.GetDefaultFontSize (); spawnScript = GameObject.Find("CatSpawner").GetComponent<CatSpawnerScript>(); bgMusicGameObject = GameObject.Find("Music"); score = 0; if (rainOnStart && !isRaining) { StartRaining(); } }
// Use this for initialization void Start() { Physics2D.IgnoreLayerCollision (14, 14); // ignore enemy-enemy collision spawnerScript = GameObject.Find("CatSpawner").GetComponent<CatSpawnerScript>(); }