コード例 #1
0
        private void ProjectOnHit(IndieProjectileObject obj)
        {
            List <UnitObject> _list = BattleManager.FindEnemyInRadius(parent.sourceUnit.TeamIndex, obj.transform.position, radius[parent.LevelIndex]);

            for (int i = 0; i < _list.Count; i++)
            {
                _list[i].TakeDamage((int)(dmgBonus[parent.LevelIndex] + parent.sourceUnit.TotalAttack), parent.sourceUnit.playerOwned);
                _list[i].TakeStun(stunDuration[parent.LevelIndex]);
            }
        }
コード例 #2
0
 private void ProjectOnHit(IndieProjectileObject obj)
 {
     obj.TargetUnit.TakeDamage((int)(dmgBonus[parent.LevelIndex] + parent.sourceUnit.TotalAttack), parent.sourceUnit.playerOwned);
 }