void Start() { tankStats = GameObject.Find("Tank_Player").GetComponent <CharacterStats>(); skills = GameObject.Find("Tank_Player").GetComponent <Player_Skills>(); healthBar = GameObject.Find("TankHealthBar").GetComponent <TankHealthBar>(); healingImage = GameObject.Find("TankHealingImage"); healthBar.SetMaxHealth(tankStats.maxHealth); }
void Start() { objectTex = gameObject.GetComponent <RawImage>(); skills = GameObject.Find("Tank_Player").GetComponent <Player_Skills>(); fullHealth = Resources.Load("Bonus_PokerFace") as Texture; semiFullHealth = Resources.Load("Bonus_Confused") as Texture; halfHealth = Resources.Load("Bonus_Sad") as Texture; thirdHealth = Resources.Load("Bonus_Yell") as Texture; death = Resources.Load("T_6_head_scull_") as Texture; objectTex.texture = fullHealth; }