本文整理汇总了C#中Gun.SetShieldHP方法的典型用法代码示例。如果您正苦于以下问题:C# Gun.SetShieldHP方法的具体用法?C# Gun.SetShieldHP怎么用?C# Gun.SetShieldHP使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gun
的用法示例。
在下文中一共展示了Gun.SetShieldHP方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FillController
//.........这里部分代码省略.........
//Shieldshred
gc.SetShieldShred (shieldShred);
gc.SetShieldSlow(regenBonusCount*PERCENT_SHIELD_REGEN_SLOW_PER_PAIR);
//Spread
gc.SetSpread(spread);
//SplitCount
gc.SetSplit (splitType);
gc.SetMultiSplit(recursiveSplitBonus);
//Homing
gc.SetIsHoming (homingStrength);
//ArcStrength
gc.SetDoesArc (arcBoost);
}else if(gc.GetTowerType().Equals("Trap")){
//***GET TRAP SCALARS FROM JOE***
//Debug.Log("speed is " + ((1f / speed) * SPEED_CONSTANT));
//Damage
gc.SetDmg(trapDmg);
//Range
gc.SetRange(trapRange);
//Speed
gc.SetSpeed(trapSpeed);
//Cooldown
gc.SetCooldown(trapCooldown);
//Poison
gc.SetPoison(trapPoison);
//Debug.Log(gc.buttonID + " poison value is set to " + poison);
gc.SetPoisonDur(3f);
gc.SetChainPoison(chainPoisonBonus);
gc.SetLeeches(hijackRegenBonus);
//Slowdown
gc.SetSlowdown(trapSlowdownMax); //for now. eventually add in that scaling system for slow/fast enemies?
gc.SetSlowDur(0.75f);
//Knockback
gc.SetKnockback(trapKnockback);
//Lifedrain
gc.SetLifeDrain(trapLifeDrain);
//Splash
gc.SetSplash(trapSplash);
gc.SetSplashRadiusBonus(splashBonusCount * PERCENT_AOE_RANGE_PER_PAIR);
//Stun
gc.SetStun(trapStun);
//Penetration
gc.SetPenetration(trapPenetration);
gc.SetPiercing(penetrationBonusCount);
//Shieldshred
gc.SetShieldShred(trapShieldShred);
gc.SetShieldSlow(regenBonusCount*PERCENT_SHIELD_REGEN_SLOW_PER_PAIR);
//Spread
gc.SetSpread(trapSpread);
//SplitCount
gc.SetSplit(trapSplit);
//Homing
gc.SetIsHoming(trapHoming);
//ArcStrength
gc.SetDoesArc(trapArc);
}
else if(gc.GetTowerType().Equals ("Shield")){
//HP
gc.SetShieldHP(shieldHP);
//Range
gc.SetRange(shieldRange);
//Speed
gc.SetSpeed(shieldSpeed);
//Cooldown
gc.SetCooldown(shieldCooldown);
//Poison
gc.SetPoison(shieldPoison);
//Debug.Log(gc.buttonID + " poison value is set to " + poison);
gc.SetPoisonDur(3f);
gc.SetChainPoison(chainPoisonBonus);
gc.SetLeeches(hijackRegenBonus);
//Slowdown
gc.SetSlowdown(shieldSlowdownMax); //for now. eventually add in that scaling system for slow/fast enemies?
gc.SetSlowDur(0.75f);
//Knockback
gc.SetKnockback(shieldKnockback);
//Lifedrain
gc.SetLifeDrain(shieldLifeDrain);
//Splash
gc.SetSplash(shieldSplash);
gc.SetSplashRadiusBonus(splashBonusCount * PERCENT_AOE_RANGE_PER_PAIR);
//Stun
gc.SetStun(shieldStun);
//Penetration
gc.SetPenetration(shieldPenetration);
gc.SetPiercing(penetrationBonusCount);
//Shieldshred
gc.SetShieldShred(shieldShieldShred);
gc.SetShieldSlow(regenBonusCount * PERCENT_SHIELD_REGEN_SLOW_PER_PAIR);
//Spread
gc.SetSpread(shieldSpread);
//SplitCount
gc.SetSplit(shieldSplit);
//Homing
gc.SetIsHoming(shieldHoming);
//ArcStrength
gc.SetDoesArc(shieldArc);
}
}