UnityでMMO作たいけどどうする!?6(^^ (741レス)
UnityでMMO作たいけどどうする!?6(^^ http://mevius.5ch.net/test/read.cgi/gamedev/1580966311/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
447: 宵闇大使 ◆SoVpkB15jY [] 2021/09/06(月) 21:49:51.32 ID:U5aKwWhG 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吐きまふ(^^ どうすりゃいいのよ?(^^ http://mevius.5ch.net/test/read.cgi/gamedev/1580966311/447
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 294 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.007s