protected override void OnRender() { DamageText.text = remainingDamage.ToString(); if (client != null) { DescriptionText.text = StringTemplate.ParseAndReplaceTemplate(asset.Description, client, client.Lover); } }
private string GetBreakUpText(Client client1, Client client2) { if (client1.RelationshipHealth <= 0 && client2.RelationshipHealth <= 0) { return(StringTemplate.ParseAndReplaceTemplate(mutualBreakUp, client1, client2)); } if (client1.RelationshipHealth <= 0) { return(StringTemplate.ParseAndReplaceTemplate(oneSidedBreakUp, client2, client1)); } // Must be client2 that broke up, return that description. return(StringTemplate.ParseAndReplaceTemplate(oneSidedBreakUp, client1, client2)); }