// Use this for initialization void Start() { ps = GetComponent <PowerupSpawn>(); t = 0; powerUpOn = false; player = 1; }
// Use this for initialization void Start() { b = ball.GetComponent <BallMovement>(); ps = this.GetComponent <PowerupSpawn>(); t = 0; powerUpOn = false; player = 1; }
// Use this for initialization void Start() { startTime = Time.time; groundHit = GetComponentInChildren <GroundHit>(); dropZone = GetComponentInChildren <DropZone>(); powerupSpawn = GetComponentInChildren <PowerupSpawn>(); craneController = GetComponentInChildren <CraneController>(); gameOverText.text = ""; }
void SetComponentsEnabled(bool isEnabled) { EnemyManager enemyManager = GameObject.FindGameObjectWithTag(ENEMY_MANAGER).GetComponent <EnemyManager>(); InputManager inputManager = GameObject.FindGameObjectWithTag(TAG_TOUCH).GetComponent <InputManager>(); GameObject spawnManager = GameObject.FindGameObjectWithTag(TAG_SPAWN_MANAGER); CoinSpawn coinSpawn = spawnManager.GetComponent <CoinSpawn>(); PowerupSpawn powerupSpawn = spawnManager.GetComponent <PowerupSpawn>(); HealSpawn healSpawn = spawnManager.GetComponent <HealSpawn>(); _countdown.gameObject.SetActive(isEnabled); _playerCollider.enabled = isEnabled; enemyManager.enabled = isEnabled; coinSpawn.enabled = isEnabled; powerupSpawn.enabled = isEnabled; healSpawn.enabled = isEnabled; _timer.enabled = isEnabled; inputManager.enabled = isEnabled; _hasGameStarted = isEnabled; }
// Use this for initialization void Start() { ps = this.GetComponent <PowerupSpawn>(); t = 0; powerUpOn = false; }