Ejemplo n.º 1
0
 /// <summary>
 /// Called every frame by the Basher
 /// </summary>
 public virtual void Update(ref Basher basher)
 {
     damagable = basher.GetComponent <Damagable>();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Triggered after the basher collides with an object and has taken damage
 /// </summary>
 public virtual void PostHit(ref Basher basher, ref Damagable target, float damage)
 {
     damagable = basher.GetComponent <Damagable>();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Triggered after the basher is damaged (e.g from archers) and has taken the damage
 /// </summary>
 public virtual void PostDamage(ref Basher basher, float damage)
 {
     damagable = basher.GetComponent <Damagable>();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Triggered on startup to modify things
 /// </summary>
 public virtual void Initialise(ref Basher basher)
 {
     damagable = basher.GetComponent <Damagable>();
 }