Just some beginner pleb wondering if this is a weird approach to applying visuals/any other on hit things to an object,
say I had an IDamageable
interface with an OnHit()
method and in an enemy object I would have a script that applies both the damage and visual effects to the enemy on hit,
is this a messy or bad approach and is there a better way to handle this type of behavior?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…