//Populate the stats texts with the stats of the bug passed as parameter public void PopulateStatsTexts(Bug bug) { if(bug) { lifeText.text = bug.GetLife() + " / " + bug.GetMaxLife(); attackText.text = bug.GetAttack().ToString(); defenseText.text = bug.GetDefense().ToString(); } else { lifeText.text = None; attackText.text = None; defenseText.text = None; } }