Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     ps        = GetComponent <PowerupSpawn>();
     t         = 0;
     powerUpOn = false;
     player    = 1;
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     b         = ball.GetComponent <BallMovement>();
     ps        = this.GetComponent <PowerupSpawn>();
     t         = 0;
     powerUpOn = false;
     player    = 1;
 }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        startTime       = Time.time;
        groundHit       = GetComponentInChildren <GroundHit>();
        dropZone        = GetComponentInChildren <DropZone>();
        powerupSpawn    = GetComponentInChildren <PowerupSpawn>();
        craneController = GetComponentInChildren <CraneController>();

        gameOverText.text = "";
    }
Ejemplo n.º 4
0
    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;
    }
Ejemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     ps        = this.GetComponent <PowerupSpawn>();
     t         = 0;
     powerUpOn = false;
 }