示例#1
0
 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);
     }
 }
示例#2
0
    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);
    }
示例#3
0
    private void Start() {

        GlobalVars.playerKitComparator = this;
        currentKit = GlobalVars.seededSpawner.availibleKits[0];
    }