public bool CheckHealth() { if (character == null) { return(false); } if (lastHealthValue > character.currentHealth) { lastDamage += lastHealthValue - character.currentHealth; lastHealthValue = character.currentHealth; foreground.rectTransform.localScale = new Vector3((float)character.currentHealth / (float)character.maxHealth, 1, 1); if (!character.isAlive) { character = null; } return(true); } lastHealthValue = character.currentHealth; return(false); }
public void Unequip(Character user, ItemInstance item) { }