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