Esempio n. 1
0
 /// <summary>
 /// 攻击主角(动画事件)
 /// </summary>
 public void AttackHeroByAnimationEvent()
 {
     if (_HeroProperty)
     {
         print("AttackHeroByAnimationEvent:  " + _MyProperty.ATK);
         _HeroProperty.DecreaseHealthValues(_MyProperty.ATK);
     }
 }
Esempio n. 2
0
        }  //Method_End

        /// <summary>
        /// 攻击主角事件   这个方法将会添加在敌人在攻击动画中某一个时机上
        /// </summary>
        public void AttackHeroByAnimationEvent()
        {
            _heroProperty.DecreaseHealthValues(_MyProperty.EnemyAttack);     //主角受到多少攻击由敌人的攻击力决定
        }