public virtual void Start(Vector2 target, GameObject parent) { Vector2 direction = target - parent.transform.position; direction.Normalize(); GetComponent <Navigation.ProjectileMovementComponent>().Direction = direction; GetComponent <Navigation.ProjectileMovementComponent>().Velocity = speed; Damage = new Gameplay.DamageInfo(parent, baseDamage); }
private void Die(Gameplay.Health damaged, Gameplay.DamageInfo damageInfo) { SpawnCorpse(); Destroy(); }
private void OnDamage(Gameplay.Health damaged, Gameplay.DamageInfo damageInfo) { hitSFX.Stop(); hitSFX.Play(); }
public void Refresh(Gameplay.Health damaged, Gameplay.DamageInfo dmgInfo) { SetValue(damaged.GetPercentage()); }