예제 #1
0
파일: BadCard.cs 프로젝트: jc14/ldjam-46
    protected override void OnRender()
    {
        DamageText.text = remainingDamage.ToString();

        if (client != null)
        {
            DescriptionText.text = StringTemplate.ParseAndReplaceTemplate(asset.Description, client, client.Lover);
        }
    }
예제 #2
0
    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));
    }