Пример #1
0
 public DamageInfo(float value, AttackType attackType, GameObject source)
 {
     this.value           = value;
     this.attackType      = attackType;
     this.damageDirection = DamageDirection.Neutral;
     this.source          = source;
 }
Пример #2
0
 public Hazard()
 {
     StatLoss          = new int[GameBase.NumStats];
     Buffs             = new List <Buff>();
     DirectionOfDamage = new DamageDirection();
     TypeOfBlock       = new BlockType();
 }
Пример #3
0
 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;
 }
Пример #4
0
    public void SetDirection(DamageDirection direction, Transform origin)
    {
        this.direction = direction;
        this.origin    = origin;

        if (origin == null)
        {
            Debug.LogError($"尝试设置伤害来源为Null,这可能导致后续逻辑出现问题\n{System.Environment.StackTrace}");
        }
    }