ControllableUnit.GetCharacterData C# (CSharp) 메소드

GetCharacterData() 공개 메소드

public GetCharacterData ( ) : CharacterData,
리턴 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