|
@@ -319,21 +319,19 @@ public class ManaIAP : MonoBehaviour, IStoreListener
|
|
|
|
|
|
public static void ShareCallback(int reqID, ResponseState state, PlatformType type, Hashtable result)
|
|
|
{
|
|
|
- ManaDebug.Log("Share " + state + " " + result);
|
|
|
+ if (!string.IsNullOrEmpty(ImagePath))
|
|
|
+ {
|
|
|
+ ManaReso.SetActive("P_Open", true);
|
|
|
+ ManaReso.SetActive("P_Share", true);
|
|
|
+
|
|
|
+ ImagePath = null;
|
|
|
+ }
|
|
|
|
|
|
if (state == ResponseState.Success)
|
|
|
{
|
|
|
ManaCenter.ShareAmt++;
|
|
|
|
|
|
Bubble.Show(null, Language.GetStr("Common", "ShareSuccess"));
|
|
|
-
|
|
|
- if (!string.IsNullOrEmpty(ImagePath))
|
|
|
- {
|
|
|
- ManaReso.SetActive("P_Open", true);
|
|
|
- ManaReso.SetActive("P_Share", true);
|
|
|
-
|
|
|
- ImagePath = null;
|
|
|
- }
|
|
|
}
|
|
|
else if (state == ResponseState.Fail)
|
|
|
{
|