兄弟非表示中もSEが鳴っていたのを修正

This commit is contained in:
kimura 2021-10-15 15:51:40 +09:00
parent eaa3ec3f04
commit aa005b6e42
1 changed files with 6 additions and 2 deletions

View File

@ -61,12 +61,12 @@ public class BrotherConversation : MonoBehaviour
private void SetData(BrotherScriptData scriptData)
{
brotherBlueAnimator.SetTrigger(scriptData.BlueFace.ToString());
brotherPinkAnimator.SetTrigger(scriptData.PinkFace.ToString());
brotherText.text = scriptData.text;
switch (scriptData.Brother)
{
case BrotherType.Blue:
brotherBlueAnimator.SetTrigger(scriptData.BlueFace.ToString());
brotherPinkAnimator.SetTrigger(PinkFaceType.Normal.ToString());
brotherBlueAnimator.transform.localPosition = brotherBlueTarget.localPosition;
brotherBlueAnimator.transform.SetLocalScale(1f);
brotherPinkAnimator.transform.SetLocalScale(0f);
@ -75,6 +75,8 @@ public class BrotherConversation : MonoBehaviour
bothNameObject.SetActive(false);
break;
case BrotherType.Pink:
brotherBlueAnimator.SetTrigger(BlueFaceType.Normal.ToString());
brotherPinkAnimator.SetTrigger(scriptData.PinkFace.ToString());
brotherPinkAnimator.transform.localPosition = brotherPinkTarget.localPosition;
brotherBlueAnimator.transform.SetLocalScale(0f);
brotherPinkAnimator.transform.SetLocalScale(1f);
@ -83,6 +85,8 @@ public class BrotherConversation : MonoBehaviour
bothNameObject.SetActive(false);
break;
case BrotherType.Both:
brotherBlueAnimator.SetTrigger(scriptData.BlueFace.ToString());
brotherPinkAnimator.SetTrigger(scriptData.PinkFace.ToString());
brotherBlueAnimator.transform.localPosition = brotherBlueBothTarget.localPosition;
brotherPinkAnimator.transform.localPosition = brotherPinkBothTarget.localPosition;
brotherBlueAnimator.transform.SetLocalScale(1f);