コード例 #1
0
ファイル: PickItem.cs プロジェクト: Laharnar/TurnBaseSystems
 public override void ApplyDamage(Unit source, GridItem attackedSlot)
 {
     // doesn't do damage, tries to pickup item from slot
     if (attackedSlot.fillAsPickup)
     {
         GridManager.RecolorMask(source.curSlot, 0, source.abilities.BasicAttack.attackMask);
         source.EquipAction(attackedSlot.fillAsPickup);
         attackedSlot.DetachPickupFromSlot();
     }
 }