ControllableUnit.GetCharacterData C# (CSharp) Method

GetCharacterData() public method

public GetCharacterData ( ) : CharacterData,
return CharacterData,
    public CharacterData GetCharacterData()
    {
        return this.characterData;
    }

Usage Example

    public void Perform(ControllableUnit sourceUnit, ControllableUnit targetUnit)
    {
        AttributeBonus damageOutcome = new AttributeBonus(-2,1);

        HealthAttribute healthAttribute = targetUnit.GetCharacterData().GetHealthAttribute();
        healthAttribute.AddAttributeBonus(damageOutcome);

        Debug.Log ("Normal attack skill to " +targetUnit+ ". Unit new HP is: " +targetUnit.GetCharacterData().GetHealthAttribute().GetModifiedValue());

        this.PerformAnimation(sourceUnit, targetUnit);
    }
All Usage Examples Of ControllableUnit::GetCharacterData