Skip to content

Commit

Permalink
Fix post-account linking behaviour and incorrect profile button icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey committed Oct 7, 2020
1 parent f481ab9 commit 6e8da91
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,15 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 7587026821285697340}
m_Modifications:
- target: {fileID: 9222053914038295102, guid: 313119b61942d4d1daf3dc74eff589e6,
- target: {fileID: 8187776351546866063, guid: 313119b61942d4d1daf3dc74eff589e6,
type: 3}
propertyPath: m_Name
value: MainMenu
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8187776351546866063, guid: 313119b61942d4d1daf3dc74eff589e6,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9222053914038295103, guid: 313119b61942d4d1daf3dc74eff589e6,
type: 3}
Expand Down Expand Up @@ -527,15 +532,10 @@ PrefabInstance:
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 8187776351546866063, guid: 313119b61942d4d1daf3dc74eff589e6,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8187776351546866063, guid: 313119b61942d4d1daf3dc74eff589e6,
- target: {fileID: 9222053914038295102, guid: 313119b61942d4d1daf3dc74eff589e6,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
propertyPath: m_Name
value: MainMenu
objectReference: {fileID: 0}
- target: {fileID: 1926405838632996097, guid: 313119b61942d4d1daf3dc74eff589e6,
type: 3}
Expand Down Expand Up @@ -1100,30 +1100,30 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 152bec8f0073348f998b57e8d0d2d56c, type: 3}
--- !u!114 &3577866936241823370 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 6407966649620933387, guid: 152bec8f0073348f998b57e8d0d2d56c,
--- !u!1 &2907123844323223260 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 4688991624373441373, guid: 152bec8f0073348f998b57e8d0d2d56c,
type: 3}
m_PrefabInstance: {fileID: 7587026821006996865}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2907123844323223260}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 324f3b63bb596476ea74d1b010da30f0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!224 &3069828688384664753 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 4886599519023862064, guid: 152bec8f0073348f998b57e8d0d2d56c,
type: 3}
m_PrefabInstance: {fileID: 7587026821006996865}
m_PrefabAsset: {fileID: 0}
--- !u!1 &2907123844323223260 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 4688991624373441373, guid: 152bec8f0073348f998b57e8d0d2d56c,
--- !u!114 &3577866936241823370 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 6407966649620933387, guid: 152bec8f0073348f998b57e8d0d2d56c,
type: 3}
m_PrefabInstance: {fileID: 7587026821006996865}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2907123844323223260}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 324f3b63bb596476ea74d1b010da30f0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &7587026821359198512
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1315,11 +1315,6 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 7587026821285697340}
m_Modifications:
- target: {fileID: 3581749019319966985, guid: 7b3e54198160d4b519fe3231112b0478,
type: 3}
propertyPath: m_Name
value: XsollusLargeLogo
objectReference: {fileID: 0}
- target: {fileID: 3581749019319966990, guid: 7b3e54198160d4b519fe3231112b0478,
type: 3}
propertyPath: m_LocalPosition.x
Expand Down Expand Up @@ -1425,6 +1420,11 @@ PrefabInstance:
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3581749019319966985, guid: 7b3e54198160d4b519fe3231112b0478,
type: 3}
propertyPath: m_Name
value: XsollusLargeLogo
objectReference: {fileID: 0}
- target: {fileID: 3581749020015185276, guid: 7b3e54198160d4b519fe3231112b0478,
type: 3}
propertyPath: m_AnchorMin.y
Expand Down Expand Up @@ -1711,7 +1711,7 @@ PrefabInstance:
type: 3}
propertyPath: pressedStateSprite
value:
objectReference: {fileID: 21300000, guid: 4907ec2f56acb467082a7dd60c66f824,
objectReference: {fileID: 21300000, guid: 368e0ac8493174310bfc8383c4443bac,
type: 3}
- target: {fileID: 3547370729128751038, guid: 8a7604a292124488388498e3d582c635,
type: 3}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
#define LoginDemo
using System;
using UnityEngine;
using Xsolla.Core;
using Xsolla.Core.Popup;
Expand Down Expand Up @@ -74,13 +75,17 @@ private void OnSuccessConsoleLogin(string newToken)
private void ApplyNewToken(string newToken)
{
DemoController.Instance.GetImplementation().Token = newToken;
#if LoginDemo
FindObjectOfType<UserInfoDrawer>()?.Refresh();
#elif StoreDemo
DemoController.Instance.SetState(MenuState.Main);
UserInventory.Instance.Refresh(onSuccess: GoToInventory, onError: StoreDemoPopup.ShowError);
}

private void GoToInventory()
{
DemoController.Instance.SetState(MenuState.Inventory);
#endif
}

private void ShowCodeConfirmation(Action<string> callback)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ IEnumerator Start()
}, _ => busy = false);

yield return new WaitWhile(() => busy);
Destroy(this, 0.1F);
}
//Destroy(this, 0.1F);
this.gameObject.SetActive(false);
this.gameObject.SetActive(true);
}

public void Refresh()
{
StartCoroutine(Start());
}
}

0 comments on commit 6e8da91

Please sign in to comment.