Exemplo n.º 1
0
 private void Start()
 {
     audioManager = Bardo.AudioManager.instance;
     if (audioManager == null)
     {
         Debug.LogError("No AudioManager found");
     }
 }
Exemplo n.º 2
0
 private void Start()
 {
     camShake = GameMaster.gm.GetComponent <CameraShake>();
     if (camShake == null)
     {
         Debug.LogError("No camera shake script found on GM object");
     }
     audioManager = Bardo.AudioManager.instance;
     if (audioManager == null)
     {
         Debug.LogError("No audio manager found in scene");
     }
 }
Exemplo n.º 3
0
    private void Start()
    {
        if (cameraShake == null)
        {
            Debug.LogError("No camera shake reference in Game Master");
        }
        RemainingLives = maxLives;
        Money          = startingMoney;

        //caching
        audioManager = Bardo.AudioManager.instance;
        if (audioManager == null)
        {
            Debug.LogError("No audiomanager reference in Game Master");
        }
    }
Exemplo n.º 4
0
    private void Start()
    {
        stats = PlayerStats.instance;
        stats.currentHealth = stats.maxHealth;
        if (statusIndicator == null)
        {
            Debug.LogError("Missing status indicator object reference");
        }
        else
        {
            statusIndicator.SetHealth(stats.currentHealth, stats.maxHealth);
        }
        GameMaster.gm.onToggleUpgradeMenu += OnUpgradeMenuToggle;

        audioManager = Bardo.AudioManager.instance;
        if (audioManager == null)
        {
            Debug.LogError("No AudioManager found");
        }

        InvokeRepeating("RegenHealth", 1f / stats.healthRegenRate, 1f / stats.healthRegenRate);
    }