private void Awake() { if (instance == null) { instance = this; } }
void Start() { DudeManager.Init(); for (int i = 0; i < 22; i++) { SpawnStickFigure(); } }
void Die(DeathType type) { anims.Ragdoll(); charNav.enabled = false; anims.Blood(); DudeManager.reportDeath(type); dead = true; Destroy(gameObject, 15f); }
public void UpdateText() { text.text = DudeManager.GetDeathAmountString(); }