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