//======================================= // Functions //======================================= public virtual void Init(Tile spawnTile) { level = LevelManager.instance; skeletonAnim = GetComponentInChildren <SkeletonAnimation>(); Health = healthMax; CurrentTile = spawnTile; InitBody(); if (transform.Find("DamageValueHUD") != null) { DamageValueHUD = transform.Find("DamageValueHUD").GetComponent <UIWorldHUD>(); } finishedInit = true; }
void InitDetectStateIcon() { detectStateIcon = transform.Find("DetectStateHUD").GetComponent <UIWorldHUD>(); detectStateIcon.SpawnHUD(); UpdateDetectStateIcon(detectState); }