public DamageInfo(float value, AttackType attackType, GameObject source) { this.value = value; this.attackType = attackType; this.damageDirection = DamageDirection.Neutral; this.source = source; }
public Hazard() { StatLoss = new int[GameBase.NumStats]; Buffs = new List <Buff>(); DirectionOfDamage = new DamageDirection(); TypeOfBlock = new BlockType(); }
public DamageInfo(string MovesName, float value, AttackType attackType, DamageDirection damageDirection, GameObject source) { this.movesName = MovesName; this.value = value; this.attackType = attackType; this.damageDirection = damageDirection; this.source = source; }
public void SetDirection(DamageDirection direction, Transform origin) { this.direction = direction; this.origin = origin; if (origin == null) { Debug.LogError($"尝试设置伤害来源为Null,这可能导致后续逻辑出现问题\n{System.Environment.StackTrace}"); } }