public void UpdateCurrentKitProgression(KitScriptableObject newKit) { if(newKit != currentKit) { //Debug.Log($"entering new kit: {newKit.name} from {currentKit.name}"); currentKit = newKit; zoneTextController.PlayIntro(currentKit.name); GlobalVars.achievementManager.RecieveAchivementRequest(currentKit.linkedAchievement); } }
private void Awake() { indexInChain = GlobalVars.seededSpawner.currentNodeIndex; samplRate = GlobalVars.SampleRate; localDifficulty = GlobalVars.difficultyManager.currentDifficultyMod; childrenDensity += localDifficulty; childrenDensity = Mathf.Clamp(childrenDensity, 0, 5); localKit = currentKit; StartCoroutine(SpawnChildrenCoroutine()); //float mapTest = ReedsUtils.Remap(.3f,0,1,-maxForwardDelta,maxForwardDelta); //Debug.Log("Map test says " + mapTest); }
private void Start() { GlobalVars.playerKitComparator = this; currentKit = GlobalVars.seededSpawner.availibleKits[0]; }