void Start() { sm = FindObjectOfType <SaveManager>(); am = FindObjectOfType <AudioManager>(); achievementsMng = FindObjectOfType <AchievementGameManager>(); skillMng = FindObjectOfType <SkillMenuScript>(); powerMng = FindObjectOfType <PowerManager>(); }
// 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(); }
// 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); }
// 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); }
// 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); }
// 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; }
// 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; }