UnityでMMO作たいけどどうする!?6(^^ (741レス)
1-

447: 宵闇大使 ◆SoVpkB15jY 2021/09/06(月)21:49 ID:U5aKwWhG(4/6) AAS
public void カオス合成()
{
if(混沌の宝石材料.Slotid==0)
{ return; }
if (カオス合成材料.Slotid == 0)
{ return; }
if (カオス合成ベース.Slotid == 0)
{ return; }
int リザルト = CF.param.Find(x => x.Juwel == 混沌の宝石材料.Slotid && x.material == カオス合成材料.Slotid && x.Base == カオス合成ベース.Slotid).result;
if (リザルト!=0)
{
カオス合成材料.Slotid = 0;
カオス合成ベース.Slotid = 0;
混沌の宝石材料.Slotid = リザルト;
カオス合成材料.img.sprite = ItemSlot.itemIcon[0];
カオス合成ベース.img.sprite = ItemSlot.itemIcon[0];
混沌の宝石材料.img.sprite = ItemSlot.itemIcon[混沌の宝石材料.Slotid];
}
}

こんな感じのスクリプト書いてまふ(^^
ただこれだと合成結果が存在しない時(^^
ラムダ式書いてる行の部分が(^^
NullReferenceException: Object reference not set to an instance of an object吐きまふ(^^
どうすりゃいいのよ?(^^
1-
あと 294 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.005s