Commit 769fed46 王帅

print

1 个父辈 9b0392eb
......@@ -1510,6 +1510,136 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 594134879}
m_CullTransparentMesh: 0
--- !u!1 &597626722
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 597626723}
- component: {fileID: 597626726}
- component: {fileID: 597626725}
- component: {fileID: 597626724}
m_Layer: 5
m_Name: sdk info
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &597626723
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 597626722}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1759455659}
m_Father: {fileID: 1879748052}
m_RootOrder: 14
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 140}
m_SizeDelta: {x: 400, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &597626724
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 597626722}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 597626725}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1879748053}
m_MethodName:
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &597626725
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 597626722}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &597626726
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 597626722}
m_CullTransparentMesh: 0
--- !u!1 &676539987
GameObject:
m_ObjectHideFlags: 0
......@@ -2895,6 +3025,84 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1746012276}
m_CullTransparentMesh: 0
--- !u!1 &1759455658
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1759455659}
- component: {fileID: 1759455661}
- component: {fileID: 1759455660}
m_Layer: 5
m_Name: sdk info text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1759455659
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1759455658}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 597626723}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 400, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1759455660
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1759455658}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.20392157, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 22
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 1
m_MaxSize: 40
m_Alignment: 1
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: SDK Info
--- !u!222 &1759455661
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1759455658}
m_CullTransparentMesh: 0
--- !u!1 &1879748048
GameObject:
m_ObjectHideFlags: 0
......@@ -3000,6 +3208,7 @@ RectTransform:
- {fileID: 1492037446}
- {fileID: 40919615}
- {fileID: 165585584}
- {fileID: 597626723}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -3020,7 +3229,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 48b3f552ab2654274bce0440be0a7d35, type: 3}
m_Name:
m_EditorClassIdentifier:
statusText: {fileID: 676539989}
statusText: {fileID: 1759455660}
inputField: {fileID: 165585585}
--- !u!1 &2007462375
GameObject:
......
......@@ -30,7 +30,9 @@ public class AASDKDemoScript: MonoBehaviour
{
if (antiAddictionSDK != null)
{
print("ZAASDK -- IsAuthenticated:" + antiAddictionSDK.IsAuthenticated());
String infoString = "--- IsAuthenticated:" + antiAddictionSDK.IsAuthenticated();
print(infoString);
statusText.text = infoString;
}
}
......@@ -42,7 +44,9 @@ public class AASDKDemoScript: MonoBehaviour
{
if (antiAddictionSDK != null)
{
print("ZAASDK -- GetUserAgeGroup:" + antiAddictionSDK.AgeGroupOfCurrentUser());
String infoString = "--- GetUserAgeGroup:" + antiAddictionSDK.AgeGroupOfCurrentUser();
print(infoString);
statusText.text = infoString;
}
}
......@@ -54,40 +58,52 @@ public class AASDKDemoScript: MonoBehaviour
{
if (antiAddictionSDK != null)
{
print("ZAASDK -- LeftTimeOfCurrentUser:" + antiAddictionSDK.LeftTimeOfCurrentUser());
String infoString = "--- LeftTimeOfCurrentUser:" + antiAddictionSDK.LeftTimeOfCurrentUser();
print(infoString);
statusText.text = infoString;
}
}
public void checkPayWithAmount()
{
int amountValue = int.Parse(inputField.text);
print("ZAASDK -- checkPayWithAmount:" + amountValue);
if (antiAddictionSDK != null)
{
antiAddictionSDK.checkPayWithAmount(amountValue);
String infoString = "--- checkPayWithAmount:" + amountValue;
print(infoString);
statusText.text = infoString;
}
}
public void recordPayWithAmount()
{
int amountValue = int.Parse(inputField.text);
print("ZAASDK -- recordPayWithAmount:" + amountValue);
if (antiAddictionSDK != null)
{
antiAddictionSDK.recordPayWithAmount(amountValue);
String infoString = "--- recordPayWithAmount:" + amountValue;
print(infoString);
statusText.text = infoString;
}
}
public void HandleZAASDKCompleted(object sender, EventArgs args)
{
print("ZAASDK -- HandleZAASDKCompleted");
String infoString = "--- ZAASDK HandleZAASDKCompleted !";
print(infoString);
statusText.text = infoString;
}
public void HandleZAASDKCheckPayCompleted(object sender, EventArgs args)
{
print("ZAASDK -- HandleZAASDKCheckPayCompleted");
String infoString = "--- The check passes, you can pay ";
print(infoString);
statusText.text = infoString;
}
}
......@@ -14,14 +14,14 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_PixelRect:
serializedVersion: 2
x: 0
y: 97
x: 58
y: 66
width: 1512
height: 836
m_ShowMode: 4
m_Title:
m_RootView: {fileID: 2}
m_MinSize: {x: 875, y: 492}
m_MinSize: {x: 875, y: 300}
m_MaxSize: {x: 10000, y: 10000}
m_Maximized: 0
--- !u!114 &2
......@@ -46,7 +46,7 @@ MonoBehaviour:
y: 0
width: 1512
height: 836
m_MinSize: {x: 875, y: 492}
m_MinSize: {x: 875, y: 300}
m_MaxSize: {x: 10000, y: 10000}
--- !u!114 &3
MonoBehaviour:
......@@ -93,10 +93,10 @@ MonoBehaviour:
y: 30
width: 1512
height: 786
m_MinSize: {x: 911, y: 442}
m_MaxSize: {x: 22006, y: 10021}
m_MinSize: {x: 910, y: 442}
m_MaxSize: {x: 22005, y: 10021}
vertical: 0
controlID: 20
controlID: 103
--- !u!114 &5
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -142,7 +142,7 @@ MonoBehaviour:
m_MinSize: {x: 201, y: 442}
m_MaxSize: {x: 4001, y: 8042}
vertical: 1
controlID: 21
controlID: 40
--- !u!114 &7
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -214,8 +214,8 @@ MonoBehaviour:
y: 0
width: 337
height: 786
m_MinSize: {x: 276, y: 71}
m_MaxSize: {x: 4001, y: 4021}
m_MinSize: {x: 275, y: 50}
m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 13}
m_Panes:
- {fileID: 13}
......@@ -289,22 +289,22 @@ MonoBehaviour:
m_MaxSize: {x: 4000, y: 4000}
m_TitleContent:
m_Text: "\u5C42\u7EA7"
m_Image: {fileID: 7966133145522015247, guid: 0000000000000000d000000000000000,
m_Image: {fileID: -3734745235275155857, guid: 0000000000000000d000000000000000,
type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 645
y: 127
x: 703
y: 96
width: 230
height: 765
m_ViewDataDictionary: {fileID: 0}
m_SceneHierarchy:
m_TreeViewState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: c8380000
m_SelectedIDs: d22d0000
m_LastClickedID: 0
m_ExpandedIDs: bef9ffffdaf9ffff6cfaffff66fbffff
m_ExpandedIDs: 9eefffffbaefffff50f0ffff32f2ffff3ef2ffffaaf4ffff66fbffff20380000c03b0000503c0000d63e0000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
......@@ -320,7 +320,7 @@ MonoBehaviour:
m_IsRenaming: 0
m_OriginalEventType: 11
m_IsRenamingFilename: 0
m_ClientGUIView: {fileID: 0}
m_ClientGUIView: {fileID: 7}
m_SearchString:
m_ExpandedScenes: []
m_CurrenRootInstanceID: 0
......@@ -344,13 +344,13 @@ MonoBehaviour:
m_MaxSize: {x: 4000, y: 4000}
m_TitleContent:
m_Text: "\u68C0\u67E5\u5668"
m_Image: {fileID: -2667387946076563598, guid: 0000000000000000d000000000000000,
m_Image: {fileID: -440750813802333266, guid: 0000000000000000d000000000000000,
type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 1176
y: 19
x: 1233
y: 96
width: 336
height: 765
m_ViewDataDictionary: {fileID: 0}
......@@ -365,7 +365,7 @@ MonoBehaviour:
m_PrefName: Preview_InspectorPreview
m_PreviewWindow: {fileID: 0}
m_LastInspectedObjectInstanceID: -1
m_LastVerticalScrollValue: 83
m_LastVerticalScrollValue: 58
--- !u!114 &14
MonoBehaviour:
m_ObjectHideFlags: 52
......@@ -382,13 +382,13 @@ MonoBehaviour:
m_MaxSize: {x: 10000, y: 10000}
m_TitleContent:
m_Text: "\u9879\u76EE"
m_Image: {fileID: -5467254957812901981, guid: 0000000000000000d000000000000000,
m_Image: {fileID: -5179483145760003458, guid: 0000000000000000d000000000000000,
type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 877
y: 127
x: 935
y: 96
width: 296
height: 765
m_ViewDataDictionary: {fileID: 0}
......@@ -405,19 +405,19 @@ MonoBehaviour:
m_SkipHidden: 0
m_SearchArea: 1
m_Folders:
- Assets/StreamingAssets
- Assets/AASDKDemo/Scripts
m_ViewMode: 1
m_StartGridSize: 16
m_LastFolders:
- Assets/StreamingAssets
- Assets/AASDKDemo/Scripts
m_LastFoldersGridSize: 16
m_LastProjectPath: /Users/ws/Desktop/Zplay/ZAnti-Addiction/ZAnti-Addiction-Unity/AASDK-Unity
m_LockTracker:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: b0380000
m_LastClickedID: 14512
m_SelectedIDs: a4380000
m_LastClickedID: 14500
m_ExpandedIDs: 000000006c3800006e38000070380000723800007438000076380000783800007a3800007c3800007e38000000ca9a3b
m_RenameOverlay:
m_UserAcceptedRename: 0
......@@ -477,18 +477,18 @@ MonoBehaviour:
m_ExpandedInstanceIDs:
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
m_OriginalName:
m_Name: AASDKDemoScene
m_OriginalName: AASDKDemoScene
m_EditFieldRect:
serializedVersion: 2
x: 0
y: 0
width: 0
height: 0
m_UserData: 0
m_UserData: 14522
m_IsWaitingForDelay: 0
m_IsRenaming: 0
m_OriginalEventType: 11
m_OriginalEventType: 0
m_IsRenamingFilename: 1
m_ClientGUIView: {fileID: 8}
m_CreateAssetUtility:
......@@ -518,13 +518,13 @@ MonoBehaviour:
m_MaxSize: {x: 4000, y: 4000}
m_TitleContent:
m_Text: "\u6E38\u620F"
m_Image: {fileID: -6423792434712278376, guid: 0000000000000000d000000000000000,
m_Image: {fileID: 4621777727084837110, guid: 0000000000000000d000000000000000,
type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 0
y: 422
x: 58
y: 499
width: 644
height: 362
m_ViewDataDictionary: {fileID: 0}
......@@ -610,13 +610,13 @@ MonoBehaviour:
m_MaxSize: {x: 4000, y: 4000}
m_TitleContent:
m_Text: "\u573A\u666F"
m_Image: {fileID: 2593428753322112591, guid: 0000000000000000d000000000000000,
m_Image: {fileID: 8634526014445323508, guid: 0000000000000000d000000000000000,
type: 0}
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 0
y: 127
x: 58
y: 96
width: 644
height: 382
m_ViewDataDictionary: {fileID: 0}
......
......@@ -503,4 +503,4 @@ ScriptsOnlyBuild:
platform: 9
scenePathNames:
- Assets/AASDKDemo/Scenes/AASDKDemoScene.unity
playerPath: /Users/ws/Desktop/ZAAUnityDemo/eeeeee
playerPath: /Users/ws/Desktop/ZAAUnityDemo/aaaaaa
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!