当前位置: 首页>>代码示例>>C#>>正文


C# Gun.SetDoesArc方法代码示例

本文整理汇总了C#中Gun.SetDoesArc方法的典型用法代码示例。如果您正苦于以下问题:C# Gun.SetDoesArc方法的具体用法?C# Gun.SetDoesArc怎么用?C# Gun.SetDoesArc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gun的用法示例。


在下文中一共展示了Gun.SetDoesArc方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FillController


//.........这里部分代码省略.........
            //Poison
            gc.SetPoison (poison);
            //Debug.Log (gc.buttonID + " poison value is set to " + poison);
            gc.SetPoisonDur (3f);
            gc.SetChainPoison(chainPoisonBonus);
            gc.SetLeeches(hijackRegenBonus);
            //Slowdown
            gc.SetSlowdown (1f-slowdownMax); //for now.  eventually add in that scaling system for slow/fast enemies?
            //Debug.Log (slowdownMax + "is max slowdown");
            gc.SetSlowDur (0.75f);
            //Knockback
            gc.SetKnockback(knockback);
            //Lifedrain
            gc.SetLifeDrain (lifeDrain);
            //Splash
            gc.SetSplash (splash);
            gc.SetSplashRadiusBonus(splashBonusCount * PERCENT_AOE_RANGE_PER_PAIR);
            //Stun
            gc.SetStun (stun);
            //Penetration
            gc.SetPenetration (penetration);
            gc.SetPiercing(penetrationBonusCount);
            //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);
开发者ID:Benedict-SC,项目名称:doom-dial,代码行数:67,代码来源:PieceParser.cs


注:本文中的Gun.SetDoesArc方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。