void Start() { bounceScript = GetComponent <BounceToBeat>(); bounceScript.enabled = false; playerScript = GameObject.Find("Player").GetComponent <Player>(); currentCollectableInterval = collectableSpawnInterval; currentEnemyInterval = enemySpawnInterval; spawning = false; }
void Start() { bounceScript = GetComponent <BounceToBeat>(); if (bounceScript) { bounceScript.enabled = false; } _rend = GetComponent <Renderer>(); startColor = _rend.material.color; invisible = Color.clear; }