public void SetCharacter(Character c, bool isAlly) { character = c; stats = new Stats(c, this, statusEffects); statusEffects.SetCharacter(c); stats.Init(); sprite.transform.localScale = UnitTeam.direction; ai = c.ai; SetSprite(c.GetSpriteHeader() + "_Default"); if (!isAlly) { sprite.rectTransform.localScale = new Vector3(-1, 1, 1); } health.InitBars(); UpdateUI(); }