データ読み込みからのLocalize対応
This commit is contained in:
parent
c9c8a834d6
commit
fa5761f9f8
|
|
@ -145,7 +145,7 @@ public class CookingResult : MonoBehaviour
|
||||||
popcornTextPerfect.text = recipe.name;
|
popcornTextPerfect.text = recipe.name;
|
||||||
quantityText.text = string.Format(QuantityTextFormat, recipe.volume);
|
quantityText.text = string.Format(QuantityTextFormat, recipe.volume);
|
||||||
coinView.SetPrice(recipe.GetRarityPrice(ProductRarity.Normal), recipe.GetRarityPrice(rarity.Rarity));
|
coinView.SetPrice(recipe.GetRarityPrice(ProductRarity.Normal), recipe.GetRarityPrice(rarity.Rarity));
|
||||||
var rarityFormat = viewType == ProductViewType.Default ? rarity.text : ScriptLocalization.UI.CookingResultsBulkOrderPerfect;
|
var rarityFormat = viewType == ProductViewType.Default ? rarity.Text : ScriptLocalization.UI.CookingResultsBulkOrderPerfect;
|
||||||
rarityText.text = rarityFormat;
|
rarityText.text = rarityFormat;
|
||||||
rarityView.SetRarity(rarity.Rarity);
|
rarityView.SetRarity(rarity.Rarity);
|
||||||
popcornTarget.DestroyAllChildrens();
|
popcornTarget.DestroyAllChildrens();
|
||||||
|
|
|
||||||
|
|
@ -555,7 +555,7 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
--- !u!114 &70687868
|
--- !u!114 &71960277
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
|
@ -568,7 +568,7 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
mTarget: {fileID: 55686911}
|
mTarget: {fileID: 55686911}
|
||||||
--- !u!114 &729722332
|
--- !u!114 &1558266571
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,6 @@ public class MissionManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
count = gameData.dailyMissionIdArray.Length,
|
count = gameData.dailyMissionIdArray.Length,
|
||||||
reward = dailyMissionCompleteRewardCoin,
|
reward = dailyMissionCompleteRewardCoin,
|
||||||
text = "デイリーミッションを達成しよう",
|
|
||||||
category = (int)MissionCategory.Daily,
|
category = (int)MissionCategory.Daily,
|
||||||
};
|
};
|
||||||
var progressValue = gameData.dailyMissionAchievedIdArray.Length;
|
var progressValue = gameData.dailyMissionAchievedIdArray.Length;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ public class MissionView : MonoBehaviour
|
||||||
public void SetData(MissionData missionData, int curentValue)
|
public void SetData(MissionData missionData, int curentValue)
|
||||||
{
|
{
|
||||||
coinText.text = missionData.reward.ToString();
|
coinText.text = missionData.reward.ToString();
|
||||||
missionText.text = missionData.text;
|
missionText.text = missionData.Text;
|
||||||
progressBar.value = Mathf.InverseLerp(0, missionData.count, curentValue);
|
progressBar.value = Mathf.InverseLerp(0, missionData.count, curentValue);
|
||||||
progressText.text = string.Format(progressFormat, curentValue, missionData.count);
|
progressText.text = string.Format(progressFormat, curentValue, missionData.count);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,8 @@ public class PanSelector : MonoBehaviour
|
||||||
|
|
||||||
private void SetData(PanData data)
|
private void SetData(PanData data)
|
||||||
{
|
{
|
||||||
panName.text = data.name;
|
panName.text = data.Name;
|
||||||
panText.text = data.text;
|
panText.text = data.Text;
|
||||||
panIconTarget.DestroyAllChildrens();
|
panIconTarget.DestroyAllChildrens();
|
||||||
Instantiate(data.GetIconPrefab(), panIconTarget);
|
Instantiate(data.GetIconPrefab(), panIconTarget);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue