Browse Source

Merge pull request #870 from iwanPlays/develop

Portrait Move To Front Fixed
master
Steve Halliwell 4 years ago committed by GitHub
parent
commit
4b2b65dc2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Assets/Fungus/Scripts/Components/PortraitController.cs
  2. 1112
      Assets/Tests/Portrait_MoveToFront.unity
  3. 7
      Assets/Tests/Portrait_MoveToFront.unity.meta

2
Assets/Fungus/Scripts/Components/PortraitController.cs

@ -390,7 +390,7 @@ namespace Fungus
/// </summary>
public virtual void MoveToFront(PortraitOptions options)
{
options.character.State.portraitImage.transform.SetSiblingIndex(options.character.State.portraitImage.transform.parent.childCount);
options.character.State.portraitImage.transform.parent.SetSiblingIndex(options.character.State.portraitImage.transform.parent.parent.childCount);
options.character.State.display = DisplayType.MoveToFront;
FinishCommand(options);
}

1112
Assets/Tests/Portrait_MoveToFront.unity

File diff suppressed because it is too large Load Diff

7
Assets/Tests/Portrait_MoveToFront.unity.meta

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: eb8d83e5ae992f0418a8f7308211029e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save