コード例 #1
0
 public void Generate(FiringCube source)
 {
     damage          = source.damage;
     attackType      = source.attackType;
     targetType      = source.targetType;
     bulletPrefab    = source.bulletPrefab;
     isTracing       = source.isTracing;
     duration        = source.duration;
     damagePerSecond = source.damagePerSecond;
 }
コード例 #2
0
ファイル: Enemy.cs プロジェクト: dmitrycdz/LaboratoryDefense
    public void TakeFiringDebuff(FiringCube fc)
    {
        FiringDebuff newFiringDebuf = new FiringDebuff
        {
            attackType      = fc.attackType,
            damagePerSecond = fc.damagePerSecond,
            duration        = fc.duration,
            timer           = fc.duration
        };

        if (firingDebuff == null || newFiringDebuf > firingDebuff)
        {
            firingDebuff = newFiringDebuf;
        }
    }