報酬のシルエット画像を翻訳に対応
This commit is contained in:
parent
92b975fd62
commit
65e0353f10
|
|
@ -2,6 +2,7 @@ using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using I2.Loc;
|
||||||
using MyGame.Scenes.marketing.Scripts;
|
using MyGame.Scenes.marketing.Scripts;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UniRx;
|
using UniRx;
|
||||||
|
|
@ -221,6 +222,10 @@ namespace MyGame.Scenes.MiniGame.Scripts
|
||||||
|
|
||||||
private void SetSilhouette(Transform prefab, bool isRecipe)
|
private void SetSilhouette(Transform prefab, bool isRecipe)
|
||||||
{
|
{
|
||||||
|
if (prefab.GetComponent<Localize>() is { enabled: true } localize)
|
||||||
|
{
|
||||||
|
localize.OnLocalize(true);
|
||||||
|
}
|
||||||
maskImage.transform.parent.SetLocalScale(isRecipe ? 1f : 2f);
|
maskImage.transform.parent.SetLocalScale(isRecipe ? 1f : 2f);
|
||||||
maskImage.sprite = prefab.GetComponent<Image>().sprite;
|
maskImage.sprite = prefab.GetComponent<Image>().sprite;
|
||||||
meterProgressImage.sprite = maskImage.sprite;
|
meterProgressImage.sprite = maskImage.sprite;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue