Exemple #1
0
    public void EquipMA(CardInfo_Equip cardInfo, int equipId)
    {
        ModuleMA newMA = GameObjectPoolManager.Instance.PoolDict[GameObjectPoolManager.PrefabNames.ModuleMA].AllocateGameObject <ModuleMA>(transform);

        newMA.M_ModuleMech = Mech;
        newMA.Initiate(cardInfo, Mech.ClientPlayer);
        newMA.M_EquipID          = equipId;
        newMA.transform.position = EquipPivots[3].position;
        M_MA = newMA;
    }
Exemple #2
0
    public void EquipMA(EquipMARequest r, CardInfo_Base cardInfo)
    {
        ModuleMA       ma          = new ModuleMA();
        CardInfo_Equip cardInfo_MA = (CardInfo_Equip)cardInfo;
        ModuleMech     mech        = GetMech(r.mechID);

        ma.M_ModuleMech = mech;
        ma.M_EquipID    = BattlePlayer.GameManager.GenerateNewEquipId();
        ma.Initiate(cardInfo_MA, BattlePlayer);
        ma.OriginCardInstanceId = r.handCardInstanceId;
        mech.M_MA = ma;
        BattlePlayer.CardDeckManager.CardDeck.AddCardInstanceId(cardInfo.CardID, r.handCardInstanceId);
    }