private int[] GetAvaillableAdons(int current) { return(PSGameUtils.StringToIntArray(Constants.SoftLureDatas.AvaillableRig[current], new char[] { ';' })); }
public int[] GetAvaillableAdons(int current) { //Debug.Log("GetAvaillableAdons"+current+" "+Constants.SoftLureDatas.AvaillableRig[current]); return(PSGameUtils.StringToIntArray(Constants.SoftLureDatas.AvaillableRig[current], new char[] { ';' })); }
public IEnumerator AffectCurrrentTackle(bool isInit) { if (currentTackle.name == "") { Debug.LogError("タックル装備なし"); yield break; } StartCoroutine(RodController.Instance.SpawnRodInvoke(currentTackle.name)); Debug.LogWarning("AffectCurrrentTackle ここでロッドを先にスポーンしろ"); if (currentTackle.lureNum == -1) { Debug.LogError("ルアー装備なし"); } else { if (currentTackle.isSoft) { //ワームがセットされている場合 int[] adons = PSGameUtils.StringToIntArray(Constants.SoftLureDatas.AvaillableRig[currentTackle.lureNum], new char[] { ';' }); if (adons.Length <= 0) { Debug.LogError("無効なデータ"); } else { int outInt = 0; if (DataManger.Instance.GAMEDATA.SettedRig.TryGetValue(Constants.SoftLureDatas.itemTittles[currentTackle.lureNum], out outInt)) { if (outInt >= adons.Length) { Debug.LogError("無効なデータ"); LureSpawner.Instance.SpawnLure(Constants.SoftLureDatas.itemTittles[currentTackle.lureNum], 0); } else { //ワームをスポーン LureSpawner.Instance.SpawnLure(Constants.SoftLureDatas.itemTittles[currentTackle.lureNum], outInt); } } else { Debug.LogError("無効なデータ"); } } } else { //ルアーをスポーン LureSpawner.Instance.SpawnLure(Constants.LureDatas.itemTittles[currentTackle.lureNum]); } //アビリティを設定する ソフトの場合は、リグとの間でマージする UpdateLure(); } if (currentTackle.lineNum == -1) { Debug.LogError("ライン装備なし"); } else { Debug.LogError("ライン" + Constants.LineDatas.lineColor[currentTackle.lineNum] + " " + Constants.LineDatas.lineWidth[currentTackle.lineNum]); //ラインを作成する if (isInit) { LineScript.Instance.CreateLine(lineColors[Constants.LineDatas.lineColor[currentTackle.lineNum]], Constants.LineDatas.lineWidth[currentTackle.lineNum]); } //ラインの色と太さを設定する UpdateLine(); } //tParamsに反映 yield return(new WaitForSeconds(0.5f)); UpdateAppealFactor(); }