本文整理汇总了C#中MyCharacterController类的典型用法代码示例。如果您正苦于以下问题:C# MyCharacterController类的具体用法?C# MyCharacterController怎么用?C# MyCharacterController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MyCharacterController类属于命名空间,在下文中一共展示了MyCharacterController类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: doUse
public override void doUse(MyCharacterController user, GameObject target)
{
//base.doUse(user, target);
initMenu(user);
initUnselectableItems();
openMenu();
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:SelectInventoryItemBookBasis.cs
示例2: ExplosionDamage
public ExplosionDamage(MyCharacterController attacker, MyCharacterController target,FieldActionController.ExplisionLevel level, int damage)
: base(attacker, target)
{
Level = level;
Damage = damage;
AllowGainExp = level == FieldActionController.ExplisionLevel.ONE;
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:ExplosionDamage.cs
示例3: caneEffect
protected override void caneEffect(MyCharacterController user, ObjectEntity target)
{
var c = target as MyCharacterController;
if (c != null) {
c.registerBuff(new Paralyze(c, BasisParameter.EffectPoint, StatusBuffBasis.CountDownType.TURN));
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:ParalyzeCane.cs
示例4: attackPtoE
public void attackPtoE(MyCharacterController src, MyCharacterController target, int damage, bool isdead)
{
string str = "",str2="";
str = string.Format("{0} は{1} へ{2}ポイントのダメージを与えた。", src.Parameter.Name,target.Parameter.Name, damage);
if (isdead) str2 = string.Format("\n{0} は倒れた。",target.Parameter.Name);
if (str.Length + str2.Length != 0) addLog(str+str2);
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:PlayLogger.cs
示例5: caneEffect
protected override void caneEffect(MyCharacterController user, ObjectEntity target)
{
var c = target as MyCharacterController;
if (c != null) {
c.registerBuff(new MissedSwing(c,BasisParameter.EffectPoint));
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:MissedSwingCana.cs
示例6: turnEnd
public override void turnEnd(MyCharacterController user)
{
base.turnEnd(user);
if (GameController.Rnd.lottery(ExertionProbability)) {
GameController.FieldActionController.explosion(user.CurrentPosition, FieldActionController.ExplisionLevel.TWO);
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:AutoExplosion.cs
示例7: applyItemEffect
public override void applyItemEffect(MyCharacterController src, params ObjectEntity[] targets)
{
if (Item != null) {
prevname = Item.Name;
success = Item.expantionInventory(BasisParameter.EffectPoint);
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:PotExpantionBook.cs
示例8: caneEffect
protected override void caneEffect(MyCharacterController user, ObjectEntity target)
{
if (isTargetObject(target)) {
var c = (target as MyCharacterController);
c.registerBuff(new SpeedDown(c, BasisParameter.EffectPoint));
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:SpeedDownCane.cs
示例9: caneEffect
protected override void caneEffect(MyCharacterController user, ObjectEntity target)
{
var c = target as MyCharacterController;
if (c != null) {
c.Parameter.levelDown(BasisParameter.EffectPoint);
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:LevelDownCane.cs
示例10: selectGoodEffect
void selectGoodEffect(MyCharacterController user)
{
int select = GameController.Rnd.Next(effectcount);
switch (select) {
case 0:
user.Parameter.increaseMaxSTR(1, true);
user.Parameter.increaseCurrentSTR(1, false);
break;
case 1:
user.heal(user.Parameter.MaxHP);
break;
case 2:
user.registerBuff(new InvalidatePoison(user));
break;
case 3:
user.registerBuff(new InvalidateSleep(user));
break;
case 4:
user.registerBuff(new InvalidateHunger(user));
break;
case 5:
user.registerBuff(new AutoItemAppraise(user));
break;
case 6:
user.registerBuff(new SneakWalk(user));
break;
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:29,代码来源:DeliciousBread.cs
示例11: ItemInventoryMenu
public ItemInventoryMenu(MyCharacterController owner)
: this(owner, delegate { })
{
//init();
SubmitAct = defaultAction;
CancelAct = () => { };
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:ItemInventoryMenu.cs
示例12: hit
public override bool hit(MyCharacterController src, GameObject target, Vector2 currentpos, bool penatrable, bool armorpiercing = false)
{
bool ret = false;
//Debug.Log("TName: " + target.name+","+target.tag);
if (TagList.isCharacterTag(target.tag) || TagList.isPlayerTag(target.tag))
{
MyCharacterController charctl = target.GetComponent<MyCharacterController>();
GameController.PlayingLogger.hitObject(this.Name, charctl.Parameter.Name);
if (!charctl.isDodge && !charctl.ParameterOffset.IsFlyingItemDodge)
{
if (this.IsCursed)
{
hitEffectWhenCursed(src, target);
}
else
{
hitEffect(src, target, currentpos, penatrable, armorpiercing);
}
//hitEffect(src, target, currentpos,penatrable,armorpiercing);
ret = true;
}
else
{
//GameController.PlayingLogger.attackMiss();
}
}
return ret;
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:29,代码来源:PotionBasis.cs
示例13: potionEffect
public override void potionEffect(MyCharacterController user, MyCharacterController target)
{
PlayerController p = target as PlayerController;
if (p != null) {
p.Parameter.increaseExHP(BasisParameter.EffectPoint);
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:HPUpPotion.cs
示例14: turnStart
public override void turnStart(MyCharacterController user)
{
var p = user as PlayerController;
if (p != null) {
p.Parameter.WallPenatrableThrow = true;
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:LongCastBangleAbility.cs
示例15: startOperation
public override bool startOperation(MyCharacterController speaker, MyCharacterController own)
{
Message.reset();
Items = GameController.DungeonInformation.ListOfUnpaidCommodityWhichNotExistOnFiled.ToArray();
initPaymentMenu(speaker as PlayerController);
return true;
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:CheckPaymentForBuy.cs
示例16: StringBoardMenu
public StringBoardMenu(MyCharacterController owener, int maxlength)
: base(rowsize,columnsize,owener,pos, size, "StringBoardMenu")
{
CurrentText = new StringBuilder(maxlength);
MaxLength = maxlength;
BoardText = new WindowText[rowsize, columnsize];
Vector2 textpos0 = Window.TextAreaPosition+Vector2.one*WindowConfigure.fontScale(1f);
for (int r = 0; r < rowsize; r++) {
Vector2 prevpos = textpos0 + new Vector2(0,r*ymargin);
for (int c = 0; c < columnsize; c++) {
float xmargin = c%5==0 ? WindowConfigure.fontScale(1.5f) : WindowConfigure.fontScale(1.2f);
xmargin = c == 0 ? WindowConfigure.fontScale(0.5f) : xmargin;
Vector2 textpos = prevpos + new Vector2(xmargin, 0);
BoardText[r, c] = new WindowText( "", textpos);
prevpos = textpos;
}
}
//string[] table = createHiraKanaTable();
setHirakanaTable();
setSystemText();
Window.MultiSelectMode = false;
Vector2 dispsize = new Vector2(WindowConfigure.fontScale(maxlength +6), WindowConfigure.fontScale(1.5f));
Vector2 disppos = new Vector2(Window.WindowPosition.x + (Window.WindowSize.x/2 - dispsize.x/2),(Window.WindowPosition.y - dispsize.y));
InputDisplay = new ViewOnlyWindow(disppos, dispsize);
WindowText prevtext = new WindowText("",InputDisplay.TextAreaPosition + new Vector2(WindowConfigure.fontScale(2f),-WindowConfigure.fontScale(0.3f)));
InputDisplay.addWindowText(prevtext);
SubWindows.Add(InputDisplay);
Window.SkipText.Add("");
Window.ReplaceText.Add(WhiteSpace,"");
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:30,代码来源:StringBoardMenu.cs
示例17: calcOffsetWhenOffensiveSide
public override DamageOffset calcOffsetWhenOffensiveSide(DamageOffset offset, MyCharacterController user, MyCharacterController target)
{
if (target.Parameter.CharacterElement == this.TargetElemental) {
offset.addOffensiveSideFinalDamageOffset(levelrate[(int)this.CurrentAbilityLevel]);
}
return offset;
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:ElementalSlayer.cs
示例18: caneEffect
protected override void caneEffect(MyCharacterController user, ObjectEntity target)
{
MyCharacterController c = target as MyCharacterController;
if (c != null) {
GameController.FieldActionController.objectBullRush(user, c, BasisParameter.BullRushDistance, BasisParameter.EffectPoint);
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:BullRush.cs
示例19: DOTDamage
public DOTDamage(MyCharacterController target, int damage, bool isdeadly, CauseOfDeathBasis cod)
: base(null, target)
{
Damage = damage;
IsDeadly = isdeadly;
COD = cod;
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:DOTDamage.cs
示例20: potionEffect
public override void potionEffect(MyCharacterController user, MyCharacterController target)
{
var p = target as PlayerController;
if (p != null) {
p.Parameter.addMaxHunger(BasisParameter.EffectPoint);
}
}
开发者ID:sgmtjp,项目名称:Git-SODATERUTOWER,代码行数:7,代码来源:HungerUpPotion.cs
注:本文中的MyCharacterController类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论