Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     anim              = GetComponent <Animator>();
     health            = GetComponent <Health>();
     health.onDie     += OnDie;
     health.onDamaged += OnDamaged;
     hp = GetComponent <WallAndCoreHpUI>();
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     health        = GetComponent <Health>();
     health.onDie += OnDie;
     hp            = GetComponent <WallAndCoreHpUI>();
 }