Esempio n. 1
0
    //=======================================
    //      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;
    }
Esempio n. 2
0
 void InitDetectStateIcon()
 {
     detectStateIcon = transform.Find("DetectStateHUD").GetComponent <UIWorldHUD>();
     detectStateIcon.SpawnHUD();
     UpdateDetectStateIcon(detectState);
 }