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