コード例 #1
0
 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);
     }
 }
コード例 #2
0
    public override bool canEnter()
    {
        // 检查角色是否有导弹,没有导弹不能瞄准
        PlayerItemBase playerItem = mPlayer.getPlayerPack().getCurItem();

        if (playerItem == null || playerItem.getItemType() != PLAYER_ITEM.PI_MISSILE)
        {
            return(false);
        }
        return(true);
    }
コード例 #3
0
    public override string showDebugInfo()
    {
        string itemType = mItem != null?mItem.getItemType().ToString() : "";

        return(this.GetType().ToString() + " : item : " + itemType);
    }