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


C# Object.Living类代码示例

本文整理汇总了C#中Game.Logic.Phy.Object.Living的典型用法代码示例。如果您正苦于以下问题:C# Living类的具体用法?C# Living怎么用?C# Living使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Living类属于Game.Logic.Phy.Object命名空间,在下文中一共展示了Living类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: player_AfterKillingLiving

 void player_AfterKillingLiving(Living living, Living target, int damageAmount, int criticalAmount)
 {
     if (IsTrigger)
     {
         target.AddEffect(new ReduceStrengthEffect(2), 0);
     }
 }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:ReduceStrengthEquipEffect.cs

示例2: player_AfterKilledByLiving

 void player_AfterKilledByLiving(Living living, Living target, int damageAmount, int criticalAmount)
 {
     if (IsTrigger)
     {
         target.AddBlood(-m_count);
     }
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:ReflexDamageEquipEffect.cs

示例3: player_AfterKillingLiving

 protected void player_AfterKillingLiving(Living living, Living target, int damageAmount, int criticalAmount)
 {
     if (IsTrigger)
     {
         target.AddEffect(new ContinueReduceBloodEffect(2,-m_blood), 0);
     }
 }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:ContinueReduceBloodEquipEffect.cs

示例4: player_AfterKillingLiving

 void player_AfterKillingLiving(Living living, Living target, int damageAmount, int criticalAmount)
 {
     if (IsTrigger)
     {
         target.AddEffect(new LockDirectionEffect(2), 0);
     }
 }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:LockDirectionEquipEffect.cs

示例5: OnAttached

 public sealed override void OnAttached(Living living)
 {
     if (living is Player)
     {
         OnAttachedToPlayer(living as Player);
     }
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:BasePlayerEffect.cs

示例6: LivingDirectSetXYAction

 public LivingDirectSetXYAction(Living living, int x, int y, int delay)
     : base(delay)
 {
     m_living = living;
     m_x = x;
     m_y = y;
 }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:LivingDirectSetXYAction.cs

示例7: OnRemoved

 public sealed override void OnRemoved(Living living)
 {
     if (living is Player)
     {
         OnRemovedFromPlayer(living as Player);
     }
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:BasePlayerEffect.cs

示例8: LivingSealAction

 public LivingSealAction(Living Living, Player target, int type, int delay)
     : base(delay, 2000)
 {
     m_Living = Living;
     m_Target = target;
     m_Type = type;
 }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:LivingSealAction.cs

示例9: LivingSayAction

 public LivingSayAction(Living living, string msg, int type, int delay, int finishTime)
     : base(delay, finishTime)
 {
     m_living = living;
     m_msg = msg;
     m_type = type; 
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:LivingSayAction.cs

示例10: OnRemoved

 public override void OnRemoved(Living living)
 {
     living.BeginSelfTurn -= new LivingEventHandle(player_BeginFitting);
     //living.IsFrost = false;
     (living as Player).BaseDamage = (living as Player).BaseDamage * 100 / 5;
     living.Game.SendPlayerPicture(living, 4, false);
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:7,代码来源:ContinueReduceDamageEffect.cs

示例11: LivingPlayeMovieAction

        public LivingPlayeMovieAction(Living living, string action, int delay, int movieTime)
            : base(delay, movieTime)
        {
            m_living = living;

            m_action = action;
        }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:7,代码来源:LivingPlayeMovieAction.cs

示例12: player_BeginFitting

 void player_BeginFitting(Living living)
 {
     m_count--;
     if (m_count <= 0)
     {
         Stop();
     }
 }
开发者ID:vancourt,项目名称:BaseGunnyII,代码行数:8,代码来源:SealEffect.cs

示例13: Start

 public override bool Start(Living living)
 {
     if (living is Player)
     {
         return base.Start(living);
     }
     return false;
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:8,代码来源:BasePlayerEffect.cs

示例14: player_BeginFitting

 void player_BeginFitting(Living player)
 {
     m_count--;
     if (m_count < 0)
     {
         Stop();
     }
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:8,代码来源:IceFronzeEffect.cs

示例15: player_BeginFitting

 private void player_BeginFitting(Living player)
 {
     m_count--;
     if (m_count <= 0)
     {
         this.Stop();
     }
 }
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:8,代码来源:InvinciblyEffect.cs


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