コード例 #1
0
 public MeleeHitbox(Attack.AttackType attackType, Attack.Element element, float length)
 {
     properties.attackType   = attackType;
     properties.element      = element;
     properties.attackLength = length;
 }
コード例 #2
0
 public override bool Damage(Attack.AttackType type, int damage, float knockback, int weight, Vector2 direction, EntityStatus ownerStatus)
 {
     entityController.Damage(type, damage, knockback, weight, direction, ownerStatus);
     EffectSpawner.instance.PopDamage(transform.position + new Vector3(0, 1f, -5f), damage);
     return(true);
 }
コード例 #3
0
 public static Attack GetAttack(float damage, Attack.AttackType type)
 {
     return(new Attack(damage, type));
 }