Class CharacterConfigSO
ScriptableObject authoring asset for character archetype configuration.
Implements ICharacterConfig so upper layers can depend on the
Application-layer interface instead of this concrete Infrastructure type.
Contains Unity-specific authoring data (prefab, death window) alongside
fields that map to the Business CharacterConfig.
Inheritance
CharacterConfigSO
Assembly: Serenity.UnityCharacter.Infrastructure.dll
Syntax
public class CharacterConfigSO : ScriptableObject, ICharacterConfig
Constructors
CharacterConfigSO()
Declaration
public CharacterConfigSO()
Properties
AddsTimePerHit
Whether hitting this character adds time to the countdown.
Declaration
public bool AddsTimePerHit { get; }
Property Value
AttackDelay
Declaration
public float AttackDelay { get; }
Property Value
BonusTimeOnHit
Declaration
public float BonusTimeOnHit { get; }
Property Value
CanBeHitDuringDeath
Declaration
public bool CanBeHitDuringDeath { get; }
Property Value
Character
The character this configuration applies to.
Declaration
public object Character { get; }
Property Value
Damage
Damage dealt to the player per hit.
Declaration
public int Damage { get; }
Property Value
DeathWindowSeconds
Time window during which the character can still receive hits after death.
Declaration
public float DeathWindowSeconds { get; }
Property Value
HitBufferCost
Declaration
public int HitBufferCost { get; }
Property Value
MaxHealth
Maximum hit points before death.
Declaration
public int MaxHealth { get; }
Property Value
MissChance
Declaration
public float MissChance { get; }
Property Value
MoveSpeed
Movement speed (units/second).
Declaration
public float MoveSpeed { get; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
Prefab
Prefab used to instantiate this character in the scene.
Declaration
public GameObject Prefab { get; }
Property Value
| Type |
Description |
| GameObject |
|
ScoreValue
Score awarded to the player on kill.
Declaration
public int ScoreValue { get; }
Property Value
TimeRewardPerHit
Seconds added to countdown per hit.
Declaration
public float TimeRewardPerHit { get; }
Property Value
Implements