!exclusive! — Baldi Dev Api
public class PrincipalShadow : MonoBehaviour { public float speed = 2f; private int speedIncreaseCount = 0; void Start() { Events.OnWrongAnswer += () => { if (IsPlayerInDetention()) { speedIncreaseCount++; speed = 2f + (speedIncreaseCount * 0.5f); } }; }
Add this to a prefab and spawn it inside the detention level using: baldi dev api
using BaldiAPI; using UnityEngine; [BaldiMod] public class DetentionDimensionMod : ModBase { public override void OnModLoad() { Events.OnWrongAnswer += OnWrongAnswerStreak; } public class PrincipalShadow : MonoBehaviour { public float
// Add exit door (only appears after surviving 60 sec) builder.AddProp(PropType.Door, 18, 18); private int speedIncreaseCount = 0