public void notifyAIGetBoxItem(PlayerItemBase playerItem) { if (playerItem.getItemType() != PLAYER_ITEM.PI_MISSILE) { CommandCharacterUseItem cmd = newCmd(out cmd); cmd.mItemIndex = mCharacter.getPlayerPack().getSelectedIndex(); pushCommand(cmd, mCharacter); } }
public override bool canEnter() { // 检查角色是否有导弹,没有导弹不能瞄准 PlayerItemBase playerItem = mPlayer.getPlayerPack().getCurItem(); if (playerItem == null || playerItem.getItemType() != PLAYER_ITEM.PI_MISSILE) { return(false); } return(true); }
public override string showDebugInfo() { string itemType = mItem != null?mItem.getItemType().ToString() : ""; return(this.GetType().ToString() + " : item : " + itemType); }