/// <summary> /// Sets up the character with default stats and resets values. /// </summary> public void Setup() { if (stats == null || stats.level == -1) { currentHealth = 0; gameObject.SetActive(false); Debug.LogWarning("No stats"); return; } currentHealth = stats.hp; stats.boosts.Clear(); ActivateSkills(SkillActivation.PASSIVE, null); stats.CalculateStats(); gameObject.name = stats.charData.entryName; currentHealth = stats.hp; UpdateHealth(); inventory.CleanupInventory(); currentTile = battleMap.GetTile(posx, posy); currentTile.currentCharacter = this; transform.position = new Vector3(currentTile.transform.position.x, currentTile.transform.position.y, 0); gameObject.SetActive(true); ExtraSetup(); }