// 근접 공격이 통했을 때 호출된다. public override void onMeleeAttackHitted(chrBehaviorBase other) { // 근접 공격으로 적을 10마리 쓰러뜨릴 때마다 캔디가 나온다. do { if (other.control.vital.getHitPoint() > 0) { break; } this.melee_count++; if (this.melee_count % 10 != 0) { break; } chrBehaviorEnemy enemy = other as chrBehaviorEnemy; if (enemy == null) { break; } enemy.setRewardItem("candy00", "candy00", null); } while(false); }