Esempio n. 1
0
    void Start()
    {
        sm = FindObjectOfType <SaveManager>();
        am = FindObjectOfType <AudioManager>();
        achievementsMng = FindObjectOfType <AchievementGameManager>();

        skillMng = FindObjectOfType <SkillMenuScript>();
        powerMng = FindObjectOfType <PowerManager>();
    }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        sm = FindObjectOfType <SaveManager>();
        am = FindObjectOfType <AudioManager>();
        achievementsMng = FindObjectOfType <AchievementGameManager>();

        powerMng = FindObjectOfType <PowerManager>();
        upgradeButton.interactable = false;

        praxisPoints = sm.GetPraxisCount();
        DisplayPraxisInfo();
    }
Esempio n. 3
0
    // Start is called before the first frame update
    void Start()
    {
        am              = FindObjectOfType <AudioManager>();
        theCamera       = FindObjectOfType <CameraController>();
        thePlayer       = FindObjectOfType <PlayerController>();
        theTimer        = FindObjectOfType <TimerManager>();
        achievementsMng = FindObjectOfType <AchievementGameManager>();

        DOTween.Init(true, true, LogBehaviour.ErrorsOnly);

        achAcePanel.SetActive(false);
        achSpeedPanel.SetActive(false);
        achSkillPanel.SetActive(false);
        achBlankPanel.SetActive(false);
    }
Esempio n. 4
0
    // Start is called before the first frame update
    void Start()
    {
        theplayer           = GetComponent <PlayerController>();
        theRadar            = FindObjectOfType <Rotate>();
        am                  = FindObjectOfType <AudioManager>();
        achievementsManager = FindObjectOfType <AchievementGameManager>();

        // set player's and radar's values
        theplayer.booster   = turboBoost;
        theRadar.radarBoost = radarBoost;

        enableTurbo   = true;
        recoveryRatio = turboRecovery / turboLength;

        slider.SetSliderMaxValue(turboLength);
    }
Esempio n. 5
0
    // Start is called before the first frame update
    void Start()
    {
        thePlayer           = FindObjectOfType <PlayerController>();
        am                  = FindObjectOfType <AudioManager>();
        achievementsManager = FindObjectOfType <AchievementGameManager>();

        initRad = detectable.radius;

        line = gameObject.GetComponent <LineRenderer>();
        line.SetVertexCount(segments + 1);
        line.useWorldSpace = false;

        shieldAviable = true;

        //Debug.Log("sp = " + sp);
        currentSP = sp;
        slider.SetSliderMaxValue(currentSP);
    }
Esempio n. 6
0
    // Start is called before the first frame update
    void Start()
    {
        radar = FindObjectOfType <Rotate>();
        am    = FindObjectOfType <AudioManager>();
        achievementsManager = FindObjectOfType <AchievementGameManager>();

        line = radar.GetComponent <LineRenderer>();

        // save initial colors
        initCircleColor = greenCircle.color;
        initRadarColor  = line.material.color;

        enableInvis   = true;
        recoveryRatio = invisRecovery / invisLength;

        slider.SetSliderMaxValue(invisLength);

        invisActivated   = false;
        invisDeactivated = true;
    }
Esempio n. 7
0
    // Start is called before the first frame update
    void Start()
    {
        am = FindObjectOfType <AudioManager>();
        achievementsManager = FindObjectOfType <AchievementGameManager>();

        line = gameObject.GetComponent <LineRenderer>();

        line.SetVertexCount(segments + 1);
        line.useWorldSpace = false;
        //CreatePoints();

        radius    = maxRad;
        radShrink = true;

        magnetAviable = true;

        slider.SetSliderMaxValue(attractionLength);

        recoveryRatio = attractionRecovery / attractionLength;

        playerAlive = true;
    }