兄弟会話クラス名変更
This commit is contained in:
parent
43dd8e24dc
commit
a61628f4c4
|
|
@ -22,7 +22,7 @@ public class BrotherConversation : MonoBehaviour
|
|||
{
|
||||
// レベルからスクリプト読み込み
|
||||
var level = 5;
|
||||
var scriptList = SpreadsheetDataManager.Instance.GetBaseDataList<ShopLevelScriptData>(Const.ScriptDataSheet);
|
||||
var scriptList = SpreadsheetDataManager.Instance.GetBaseDataList<BrotherScriptData>(Const.ScriptDataSheet);
|
||||
var targetScriptList = scriptList.Where(data => data.id == level).ToList();
|
||||
|
||||
var clickCountStream = this.UpdateAsObservable()
|
||||
|
|
@ -53,8 +53,7 @@ public class BrotherConversation : MonoBehaviour
|
|||
SetData(targetScriptList[0]);
|
||||
}
|
||||
|
||||
// ここチュートリアルでも使えるようにDataClass切りたい
|
||||
private void SetData(ShopLevelScriptData scriptData)
|
||||
private void SetData(BrotherScriptData scriptData)
|
||||
{
|
||||
Debug.Log($"{scriptData.BlueFace.ToString()}, {scriptData.PinkFace.ToString()}");
|
||||
brotherBlueAnimator.SetTrigger(scriptData.BlueFace.ToString());
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ public sealed class ShopLevelData
|
|||
}
|
||||
|
||||
[Serializable]
|
||||
public sealed class ShopLevelScriptData
|
||||
public sealed class BrotherScriptData
|
||||
{
|
||||
public int id;
|
||||
public string text;
|
||||
|
|
|
|||
Loading…
Reference in New Issue