Merge branch 'develop' of bitbucket.org:usaya/popcorn into feature/1.7.0
This commit is contained in:
commit
414fae4325
|
@ -1,10 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e2b1894e7d784825bf9719c33331fae8
|
||||
labels:
|
||||
- gvh
|
||||
- gvh_version-1.2.169
|
||||
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.169/Google.IOSResolver.dll
|
||||
- gvhp_targets-editor
|
||||
guid: 4d01b5da22bf740419f7cf904f863c88
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2730c87d98d4480884d11cfb29ff72cb
|
||||
labels:
|
||||
- gvh
|
||||
- gvh_version-1.2.169
|
||||
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.169/Google.JarResolver.dll
|
||||
- gvhp_targets-editor
|
||||
guid: 3e1d80cf60b5947188119dfcf1e9aae2
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3ed19a202c4b4b439183dc00efee3c4a
|
||||
labels:
|
||||
- gvh
|
||||
- gvh_version-1.2.169
|
||||
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.169/Google.PackageManagerResolver.dll
|
||||
- gvhp_targets-editor
|
||||
guid: a4b397990769946c3b73ac643e15e189
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 14338063180a4626be53643cb2ab5d69
|
||||
labels:
|
||||
- gvh
|
||||
- gvh_version-1.2.169
|
||||
- gvhp_exportpath-ExternalDependencyManager/Editor/1.2.169/Google.VersionHandlerImpl.dll
|
||||
- gvhp_targets-editor
|
||||
guid: a826d5455f4604037864273b93746fce
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: deafbeef1ed04f639e3195087b6d2e9f
|
||||
labels:
|
||||
- gvh
|
||||
- gvh_version-1.2.169
|
||||
- gvhp_exportpath-ExternalDependencyManager/Editor/CHANGELOG.md
|
||||
timeCreated: 1584567712
|
||||
licenseType: Pro
|
||||
guid: ac2ff8bd2583f4fdbaddf2a9c901c2c3
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
|
@ -1,18 +1,15 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 17e39196248d458daa69b514bc09b6a7
|
||||
labels:
|
||||
- gvh
|
||||
- gvh_version-1.2.169
|
||||
- gvhp_exportpath-ExternalDependencyManager/Editor/Google.VersionHandler.dll
|
||||
- gvhp_targets-editor
|
||||
timeCreated: 1480838400
|
||||
guid: ab2b1141e0f774e158bb2c339ddac47c
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 61e923e8fff245a9bf5cfcf0774e75df
|
||||
labels:
|
||||
- gvh
|
||||
- gvh_version-1.2.169
|
||||
- gvhp_exportpath-ExternalDependencyManager/Editor/LICENSE
|
||||
timeCreated: 1584567712
|
||||
licenseType: Pro
|
||||
TextScriptImporter:
|
||||
guid: d494e38ef8a3342e8802f7bd4d81a1e2
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 57b5c3f72b65480eba2cc96380835972
|
||||
labels:
|
||||
- gvh
|
||||
- gvh_version-1.2.169
|
||||
- gvhp_exportpath-ExternalDependencyManager/Editor/README.md
|
||||
timeCreated: 1584567712
|
||||
licenseType: Pro
|
||||
guid: 4d14ac73521fe481c977b33f0f1896f2
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f0ebd68c0b4541ada7e16bfce4ef4155
|
||||
labels:
|
||||
- gvh
|
||||
- gvh_manifest
|
||||
- gvh_version-1.2.169
|
||||
- gvhp_exportpath-ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.169_manifest.txt
|
||||
- gvhp_manifestname-0External Dependency Manager
|
||||
- gvhp_manifestname-play-services-resolver
|
||||
timeCreated: 1474401009
|
||||
licenseType: Pro
|
||||
guid: 68c6b2d7ff17e4d8a8062ad9f14d389b
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 706e6b01dca2641eaacb36d756f62e8a
|
||||
guid: 70ee7d8db6d4a4a4c8c7271d8aa15ad6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: dd896ed7c0b3040d99168c08f3e6f1f6
|
||||
guid: ea811254d1ed24267bf0010ca4f893ea
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
|
@ -0,0 +1,212 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1}
|
||||
m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1}
|
||||
m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_GIWorkflowMode: 0
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: .166666672
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &17281797
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 17281802}
|
||||
- 20: {fileID: 17281801}
|
||||
- 92: {fileID: 17281800}
|
||||
- 124: {fileID: 17281799}
|
||||
- 81: {fileID: 17281798}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &17281798
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &17281799
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &17281800
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &17281801
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: .23137255, g: .349019617, b: .596078455, a: 1}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: .0219999999
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &17281802
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
--- !u!1 &1482271768
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1482271770}
|
||||
- 114: {fileID: 1482271769}
|
||||
m_Layer: 0
|
||||
m_Name: AccessTokenMenu
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1482271769
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4cc408e158eec46b28b93a44fc8819ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &1482271770
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.42004156, y: -8.74592876, z: -1.64325905}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 67cb5b2387b8e4ec9b2fa69ad9510e9b
|
||||
timeCreated: 1447720184
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,212 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1}
|
||||
m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1}
|
||||
m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_GIWorkflowMode: 0
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: .166666672
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &17281797
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 17281802}
|
||||
- 20: {fileID: 17281801}
|
||||
- 92: {fileID: 17281800}
|
||||
- 124: {fileID: 17281799}
|
||||
- 81: {fileID: 17281798}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &17281798
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &17281799
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &17281800
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &17281801
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: .23137255, g: .349019617, b: .596078455, a: 1}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: .0219999999
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &17281802
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
--- !u!1 &1482271768
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1482271770}
|
||||
- 114: {fileID: 1482271769}
|
||||
m_Layer: 0
|
||||
m_Name: AppEvents
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1482271769
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e3c0dd81ff77c4c30834810815c69f6d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &1482271770
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.42004156, y: -8.74592876, z: -1.64325905}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 68ab940fa15e34433bff18301686b080
|
||||
timeCreated: 1434663633
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,212 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1}
|
||||
m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1}
|
||||
m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_GIWorkflowMode: 0
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: .166666672
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &17281797
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 17281802}
|
||||
- 20: {fileID: 17281801}
|
||||
- 92: {fileID: 17281800}
|
||||
- 124: {fileID: 17281799}
|
||||
- 81: {fileID: 17281798}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &17281798
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &17281799
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &17281800
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &17281801
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: .23137255, g: .349019617, b: .596078455, a: 1}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: .0219999999
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &17281802
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
--- !u!1 &1482271768
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1482271770}
|
||||
- 114: {fileID: 1482271769}
|
||||
m_Layer: 0
|
||||
m_Name: AppLinks
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1482271769
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f9f0b7257fa054227be6e26bf1f6b339, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &1482271770
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.42004156, y: -8.74592876, z: -1.64325905}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4ac12dfde6570493291366d0ab3eb20d
|
||||
timeCreated: 1434663633
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,212 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1}
|
||||
m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1}
|
||||
m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_GIWorkflowMode: 0
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: .166666672
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &17281797
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 17281802}
|
||||
- 20: {fileID: 17281801}
|
||||
- 92: {fileID: 17281800}
|
||||
- 124: {fileID: 17281799}
|
||||
- 81: {fileID: 17281798}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &17281798
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &17281799
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &17281800
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &17281801
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: .23137255, g: .349019617, b: .596078455, a: 1}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: .0219999999
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &17281802
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
--- !u!1 &1482271768
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1482271770}
|
||||
- 114: {fileID: 1482271769}
|
||||
m_Layer: 0
|
||||
m_Name: AppRequests
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1482271769
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3b4c675f81a254b87adc8ad01006c580, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &1482271770
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.42004156, y: -8.74592876, z: -1.64325905}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c2250c9c5cf00425384401321f8dffb4
|
||||
timeCreated: 1434135388
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,212 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1}
|
||||
m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1}
|
||||
m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_GIWorkflowMode: 0
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: .166666672
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &17281797
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 17281802}
|
||||
- 20: {fileID: 17281801}
|
||||
- 92: {fileID: 17281800}
|
||||
- 124: {fileID: 17281799}
|
||||
- 81: {fileID: 17281798}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &17281798
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &17281799
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &17281800
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &17281801
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: .23137255, g: .349019617, b: .596078455, a: 1}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: .0219999999
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &17281802
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
--- !u!1 &1482271768
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1482271770}
|
||||
- 114: {fileID: 1482271769}
|
||||
m_Layer: 0
|
||||
m_Name: DialogShare
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1482271769
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e93c4155902d3496399630ee494eab6b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &1482271770
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.42004156, y: -8.74592876, z: -1.64325905}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 190c345841ecc464e9a122f04369757e
|
||||
timeCreated: 1434132966
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,212 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1}
|
||||
m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1}
|
||||
m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_GIWorkflowMode: 0
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: .166666672
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &17281797
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 17281802}
|
||||
- 20: {fileID: 17281801}
|
||||
- 92: {fileID: 17281800}
|
||||
- 124: {fileID: 17281799}
|
||||
- 81: {fileID: 17281798}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &17281798
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &17281799
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &17281800
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &17281801
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: .23137255, g: .349019617, b: .596078455, a: 1}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: .0219999999
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &17281802
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
--- !u!1 &1482271768
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1482271770}
|
||||
- 114: {fileID: 1482271769}
|
||||
m_Layer: 0
|
||||
m_Name: GraphRequest
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1482271769
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 23c3cb06c2209474e9a8441e2712d5d2, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &1482271770
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.42004156, y: -8.74592876, z: -1.64325905}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 444ae7ddf432b457a97bfe42021075e3
|
||||
timeCreated: 1434488369
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,212 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: .211999997, g: .226999998, b: .259000003, a: 1}
|
||||
m_AmbientEquatorColor: {r: .114, g: .125, b: .133000001, a: 1}
|
||||
m_AmbientGroundColor: {r: .0469999984, g: .0430000015, b: .0350000001, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_GIWorkflowMode: 0
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: .166666672
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &17281797
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 17281802}
|
||||
- 20: {fileID: 17281801}
|
||||
- 92: {fileID: 17281800}
|
||||
- 124: {fileID: 17281799}
|
||||
- 81: {fileID: 17281798}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &17281798
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &17281799
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &17281800
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &17281801
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: .23137255, g: .349019617, b: .596078455, a: 1}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: .0219999999
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &17281802
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 17281797}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
--- !u!1 &1482271768
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1482271770}
|
||||
- 114: {fileID: 1482271769}
|
||||
m_Layer: 0
|
||||
m_Name: LogView
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1482271769
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 910cbe16250cb4363b70464c39fc701a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &1482271770
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1482271768}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.42004156, y: -8.74592876, z: -1.64325905}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c07ff0bf6bea74c2eb681ac0cae44265
|
||||
timeCreated: 1434143106
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,212 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: .200000003, g: .200000003, b: .200000003, a: 1}
|
||||
m_AmbientEquatorColor: {r: .200000003, g: .200000003, b: .200000003, a: 1}
|
||||
m_AmbientGroundColor: {r: .200000003, g: .200000003, b: .200000003, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 3
|
||||
m_SkyboxMaterial: {fileID: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_GIWorkflowMode: 1
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 1
|
||||
m_BakeResolution: 50
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: .166666657
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &787078726
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 787078731}
|
||||
- 20: {fileID: 787078730}
|
||||
- 92: {fileID: 787078729}
|
||||
- 124: {fileID: 787078728}
|
||||
- 81: {fileID: 787078727}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &787078727
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 787078726}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &787078728
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 787078726}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &787078729
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 787078726}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &787078730
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 787078726}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: .23137255, g: .349019617, b: .596078455, a: 1}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 100
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: .0219999999
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &787078731
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 787078726}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
--- !u!1 &1988862590
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1988862591}
|
||||
- 114: {fileID: 1988862593}
|
||||
m_Layer: 0
|
||||
m_Name: MainMenu
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1988862591
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1988862590}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.42004156, y: -8.74592876, z: -1.64325905}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
--- !u!114 &1988862593
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1988862590}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 922e3ad8d88a146b3b392cd8c84edd6a, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
|
@ -0,0 +1,6 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7c38a8c9adc9d5c4b869612e4033ead8
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,212 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: .25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: .00999999978
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: .200000003, g: .200000003, b: .200000003, a: 1}
|
||||
m_AmbientEquatorColor: {r: .200000003, g: .200000003, b: .200000003, a: 1}
|
||||
m_AmbientGroundColor: {r: .200000003, g: .200000003, b: .200000003, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 3
|
||||
m_SkyboxMaterial: {fileID: 0}
|
||||
m_HaloStrength: .5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &4
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_GIWorkflowMode: 1
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 1
|
||||
m_BakeResolution: 50
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightmapSnapshot: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &5
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: .5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: .400000006
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: .166666657
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &787078726
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 787078731}
|
||||
- 20: {fileID: 787078730}
|
||||
- 92: {fileID: 787078729}
|
||||
- 124: {fileID: 787078728}
|
||||
- 81: {fileID: 787078727}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &787078727
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 787078726}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &787078728
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 787078726}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &787078729
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 787078726}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &787078730
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 787078726}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: .23137255, g: .349019617, b: .596078455, a: 1}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: .300000012
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 100
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: .0219999999
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &787078731
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 787078726}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
--- !u!1 &1988862590
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1988862591}
|
||||
- 114: {fileID: 1988862593}
|
||||
m_Layer: 0
|
||||
m_Name: Pay
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1988862591
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1988862590}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -6.42004156, y: -8.74592876, z: -1.64325905}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
--- !u!114 &1988862593
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1988862590}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7f08c9721703046ec883e57562184726, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3ee189cdb21ea4bdb9d7022a0780c44c
|
||||
timeCreated: 1441927990
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e91468763bc7644208d37eee8786052e
|
||||
guid: 81ac4cc7a765b43d2b1d3020204152a0
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
|
@ -0,0 +1,263 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
internal class ConsoleBase : MonoBehaviour
|
||||
{
|
||||
private const int DpiScalingFactor = 160;
|
||||
private static Stack<string> menuStack = new Stack<string>();
|
||||
private string status = "Ready";
|
||||
private string lastResponse = string.Empty;
|
||||
private Vector2 scrollPosition = Vector2.zero;
|
||||
|
||||
// DPI scaling
|
||||
private float? scaleFactor;
|
||||
private GUIStyle textStyle;
|
||||
private GUIStyle buttonStyle;
|
||||
private GUIStyle textInputStyle;
|
||||
private GUIStyle labelStyle;
|
||||
|
||||
protected static int ButtonHeight
|
||||
{
|
||||
get
|
||||
{
|
||||
return Constants.IsMobile ? 60 : 24;
|
||||
}
|
||||
}
|
||||
|
||||
protected static int MainWindowWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return Constants.IsMobile ? Screen.width - 30 : 700;
|
||||
}
|
||||
}
|
||||
|
||||
protected static int MainWindowFullWidth
|
||||
{
|
||||
get
|
||||
{
|
||||
return Constants.IsMobile ? Screen.width : 760;
|
||||
}
|
||||
}
|
||||
|
||||
protected static int MarginFix
|
||||
{
|
||||
get
|
||||
{
|
||||
return Constants.IsMobile ? 0 : 48;
|
||||
}
|
||||
}
|
||||
|
||||
protected static Stack<string> MenuStack
|
||||
{
|
||||
get
|
||||
{
|
||||
return ConsoleBase.menuStack;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
ConsoleBase.menuStack = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected string Status
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
this.status = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected Texture2D LastResponseTexture { get; set; }
|
||||
|
||||
protected string LastResponse
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.lastResponse;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
this.lastResponse = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected Vector2 ScrollPosition
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.scrollPosition;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
this.scrollPosition = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Note we assume that these styles will be accessed from OnGUI otherwise the
|
||||
// unity APIs will fail.
|
||||
protected float ScaleFactor
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!this.scaleFactor.HasValue)
|
||||
{
|
||||
this.scaleFactor = Screen.dpi / ConsoleBase.DpiScalingFactor;
|
||||
}
|
||||
|
||||
return this.scaleFactor.Value;
|
||||
}
|
||||
}
|
||||
|
||||
protected int FontSize
|
||||
{
|
||||
get
|
||||
{
|
||||
return (int)Math.Round(this.ScaleFactor * 16);
|
||||
}
|
||||
}
|
||||
|
||||
protected GUIStyle TextStyle
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.textStyle == null)
|
||||
{
|
||||
this.textStyle = new GUIStyle(GUI.skin.textArea);
|
||||
this.textStyle.alignment = TextAnchor.UpperLeft;
|
||||
this.textStyle.wordWrap = true;
|
||||
this.textStyle.padding = new RectOffset(10, 10, 10, 10);
|
||||
this.textStyle.stretchHeight = true;
|
||||
this.textStyle.stretchWidth = false;
|
||||
this.textStyle.fontSize = this.FontSize;
|
||||
}
|
||||
|
||||
return this.textStyle;
|
||||
}
|
||||
}
|
||||
|
||||
protected GUIStyle ButtonStyle
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.buttonStyle == null)
|
||||
{
|
||||
this.buttonStyle = new GUIStyle(GUI.skin.button);
|
||||
this.buttonStyle.fontSize = this.FontSize;
|
||||
}
|
||||
|
||||
return this.buttonStyle;
|
||||
}
|
||||
}
|
||||
|
||||
protected GUIStyle TextInputStyle
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.textInputStyle == null)
|
||||
{
|
||||
this.textInputStyle = new GUIStyle(GUI.skin.textField);
|
||||
this.textInputStyle.fontSize = this.FontSize;
|
||||
}
|
||||
|
||||
return this.textInputStyle;
|
||||
}
|
||||
}
|
||||
|
||||
protected GUIStyle LabelStyle
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.labelStyle == null)
|
||||
{
|
||||
this.labelStyle = new GUIStyle(GUI.skin.label);
|
||||
this.labelStyle.fontSize = this.FontSize;
|
||||
}
|
||||
|
||||
return this.labelStyle;
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void Awake()
|
||||
{
|
||||
// Limit the framerate to 60 to keep device from burning through cpu
|
||||
Application.targetFrameRate = 60;
|
||||
}
|
||||
|
||||
protected bool Button(string label)
|
||||
{
|
||||
return GUILayout.Button(
|
||||
label,
|
||||
this.ButtonStyle,
|
||||
GUILayout.MinHeight(ConsoleBase.ButtonHeight * this.ScaleFactor),
|
||||
GUILayout.MaxWidth(ConsoleBase.MainWindowWidth));
|
||||
}
|
||||
|
||||
protected void LabelAndTextField(string label, ref string text)
|
||||
{
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.Label(label, this.LabelStyle, GUILayout.MaxWidth(200 * this.ScaleFactor));
|
||||
text = GUILayout.TextField(
|
||||
text,
|
||||
this.TextInputStyle,
|
||||
GUILayout.MaxWidth(ConsoleBase.MainWindowWidth - 150));
|
||||
GUILayout.EndHorizontal();
|
||||
}
|
||||
|
||||
protected bool IsHorizontalLayout()
|
||||
{
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
return Screen.orientation == ScreenOrientation.LandscapeLeft;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
protected void SwitchMenu(Type menuClass)
|
||||
{
|
||||
ConsoleBase.menuStack.Push(this.GetType().Name);
|
||||
SceneManager.LoadScene(menuClass.Name);
|
||||
}
|
||||
|
||||
protected void GoBack()
|
||||
{
|
||||
if (ConsoleBase.menuStack.Any())
|
||||
{
|
||||
SceneManager.LoadScene(ConsoleBase.menuStack.Pop());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e8659f5605d094c19a8b7ef9471c3603
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,71 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
internal class LogView : ConsoleBase
|
||||
{
|
||||
private static string datePatt = @"M/d/yyyy hh:mm:ss tt";
|
||||
private static IList<string> events = new List<string>();
|
||||
|
||||
public static void AddLog(string log)
|
||||
{
|
||||
events.Insert(0, string.Format("{0}\n{1}\n", DateTime.Now.ToString(datePatt), log));
|
||||
}
|
||||
|
||||
protected void OnGUI()
|
||||
{
|
||||
GUILayout.BeginVertical();
|
||||
GUILayout.Space(Screen.safeArea.yMin + 10);
|
||||
if (this.Button("Back"))
|
||||
{
|
||||
this.GoBack();
|
||||
}
|
||||
|
||||
#if UNITY_IOS || UNITY_ANDROID || UNITY_WP8
|
||||
if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved)
|
||||
{
|
||||
Vector2 scrollPosition = this.ScrollPosition;
|
||||
scrollPosition.y += Input.GetTouch(0).deltaPosition.y;
|
||||
this.ScrollPosition = scrollPosition;
|
||||
}
|
||||
#endif
|
||||
this.ScrollPosition = GUILayout.BeginScrollView(
|
||||
this.ScrollPosition,
|
||||
GUILayout.MinWidth(ConsoleBase.MainWindowFullWidth));
|
||||
|
||||
GUILayout.TextArea(
|
||||
string.Join("\n", events.ToArray()),
|
||||
this.TextStyle,
|
||||
GUILayout.ExpandHeight(true),
|
||||
GUILayout.MaxWidth(ConsoleBase.MainWindowWidth));
|
||||
|
||||
GUILayout.EndScrollView();
|
||||
|
||||
GUILayout.EndVertical();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 910cbe16250cb4363b70464c39fc701a
|
||||
timeCreated: 1434143113
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,238 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
using System;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
internal abstract class MenuBase : ConsoleBase
|
||||
{
|
||||
private static ShareDialogMode shareDialogMode;
|
||||
|
||||
protected abstract void GetGui();
|
||||
|
||||
protected virtual bool ShowDialogModeSelector()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected virtual bool ShowBackButton()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void HandleResult(IResult result)
|
||||
{
|
||||
if (result == null)
|
||||
{
|
||||
this.LastResponse = "Null Response\n";
|
||||
LogView.AddLog(this.LastResponse);
|
||||
return;
|
||||
}
|
||||
|
||||
this.LastResponseTexture = null;
|
||||
|
||||
// Some platforms return the empty string instead of null.
|
||||
if (!string.IsNullOrEmpty(result.Error))
|
||||
{
|
||||
this.Status = "Error - Check log for details";
|
||||
this.LastResponse = "Error Response:\n" + result.Error;
|
||||
}
|
||||
else if (result.Cancelled)
|
||||
{
|
||||
this.Status = "Cancelled - Check log for details";
|
||||
this.LastResponse = "Cancelled Response:\n" + result.RawResult;
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(result.RawResult))
|
||||
{
|
||||
this.Status = "Success - Check log for details";
|
||||
this.LastResponse = "Success Response:\n" + result.RawResult;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.LastResponse = "Empty Response\n";
|
||||
}
|
||||
|
||||
LogView.AddLog(result.ToString());
|
||||
}
|
||||
|
||||
protected void HandleLimitedLoginResult(IResult result)
|
||||
{
|
||||
if (result == null)
|
||||
{
|
||||
this.LastResponse = "Null Response\n";
|
||||
LogView.AddLog(this.LastResponse);
|
||||
return;
|
||||
}
|
||||
|
||||
this.LastResponseTexture = null;
|
||||
|
||||
// Some platforms return the empty string instead of null.
|
||||
if (!string.IsNullOrEmpty(result.Error))
|
||||
{
|
||||
this.Status = "Error - Check log for details";
|
||||
this.LastResponse = "Error Response:\n" + result.Error;
|
||||
}
|
||||
else if (result.Cancelled)
|
||||
{
|
||||
this.Status = "Cancelled - Check log for details";
|
||||
this.LastResponse = "Cancelled Response:\n" + result.RawResult;
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(result.RawResult))
|
||||
{
|
||||
this.Status = "Success - Check log for details";
|
||||
this.LastResponse = "Success Response:\n" + result.RawResult;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.LastResponse = "Empty Response\n";
|
||||
}
|
||||
|
||||
String resultSummary = "Limited login results\n\n";
|
||||
var profile = FB.Mobile.CurrentProfile();
|
||||
resultSummary += "name: " + profile.Name + "\n";
|
||||
resultSummary += "id: " + profile.UserID + "\n";
|
||||
resultSummary += "email: " + profile.Email + "\n";
|
||||
resultSummary += "pic URL: " + profile.ImageURL + "\n";
|
||||
resultSummary += "birthday: " + profile.Birthday + "\n";
|
||||
resultSummary += "age range: " + profile.AgeRange + "\n";
|
||||
resultSummary += "first name: " + profile.FirstName + "\n";
|
||||
resultSummary += "middle name: " + profile.MiddleName + "\n";
|
||||
resultSummary += "last name: " + profile.LastName + "\n";
|
||||
resultSummary += "friends: " + String.Join(",", profile.FriendIDs) + "\n";
|
||||
|
||||
if (profile.Hometown!=null){
|
||||
resultSummary += "hometown: " + profile.Hometown.Name + "\n";
|
||||
}
|
||||
if (profile.Location!=null){
|
||||
resultSummary += "location: " + profile.Location.Name + "\n";
|
||||
}
|
||||
|
||||
resultSummary += "gender: " + profile.Gender + "\n";
|
||||
|
||||
LogView.AddLog(resultSummary);
|
||||
}
|
||||
|
||||
protected void OnGUI()
|
||||
{
|
||||
if (this.IsHorizontalLayout())
|
||||
{
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.BeginVertical();
|
||||
}
|
||||
|
||||
GUILayout.Space(Screen.safeArea.yMin + 10);
|
||||
GUILayout.Label(this.GetType().Name, this.LabelStyle);
|
||||
|
||||
this.AddStatus();
|
||||
|
||||
#if UNITY_IOS || UNITY_ANDROID || UNITY_WP8
|
||||
if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved)
|
||||
{
|
||||
Vector2 scrollPosition = this.ScrollPosition;
|
||||
scrollPosition.y += Input.GetTouch(0).deltaPosition.y;
|
||||
this.ScrollPosition = scrollPosition;
|
||||
}
|
||||
#endif
|
||||
this.ScrollPosition = GUILayout.BeginScrollView(
|
||||
this.ScrollPosition,
|
||||
GUILayout.MinWidth(ConsoleBase.MainWindowFullWidth));
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
if (this.ShowBackButton())
|
||||
{
|
||||
this.AddBackButton();
|
||||
}
|
||||
|
||||
this.AddLogButton();
|
||||
if (this.ShowBackButton())
|
||||
{
|
||||
// Fix GUILayout margin issues
|
||||
GUILayout.Label(GUIContent.none, GUILayout.MinWidth(ConsoleBase.MarginFix));
|
||||
}
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
if (this.ShowDialogModeSelector())
|
||||
{
|
||||
this.AddDialogModeButtons();
|
||||
}
|
||||
|
||||
GUILayout.BeginVertical();
|
||||
|
||||
// Add the ui from decendants
|
||||
this.GetGui();
|
||||
GUILayout.Space(10);
|
||||
|
||||
GUILayout.EndVertical();
|
||||
GUILayout.EndScrollView();
|
||||
}
|
||||
|
||||
private void AddStatus()
|
||||
{
|
||||
GUILayout.Space(5);
|
||||
GUILayout.Box("Status: " + this.Status, this.TextStyle, GUILayout.MinWidth(ConsoleBase.MainWindowWidth));
|
||||
}
|
||||
|
||||
private void AddBackButton()
|
||||
{
|
||||
GUI.enabled = ConsoleBase.MenuStack.Any();
|
||||
if (this.Button("Back"))
|
||||
{
|
||||
this.GoBack();
|
||||
}
|
||||
|
||||
GUI.enabled = true;
|
||||
}
|
||||
|
||||
private void AddLogButton()
|
||||
{
|
||||
if (this.Button("Log"))
|
||||
{
|
||||
this.SwitchMenu(typeof(LogView));
|
||||
}
|
||||
}
|
||||
|
||||
private void AddDialogModeButtons()
|
||||
{
|
||||
GUILayout.BeginHorizontal();
|
||||
foreach (var value in Enum.GetValues(typeof(ShareDialogMode)))
|
||||
{
|
||||
this.AddDialogModeButton((ShareDialogMode)value);
|
||||
}
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
}
|
||||
|
||||
private void AddDialogModeButton(ShareDialogMode mode)
|
||||
{
|
||||
bool enabled = GUI.enabled;
|
||||
GUI.enabled = enabled && (mode != shareDialogMode);
|
||||
if (this.Button(mode.ToString()))
|
||||
{
|
||||
shareDialogMode = mode;
|
||||
FB.Mobile.ShareDialogMode = mode;
|
||||
}
|
||||
|
||||
GUI.enabled = enabled;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8f28f9112a7d44d3c999fbd95333abbb
|
||||
timeCreated: 1465553943
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a0639bc78e2c742ad90bb7fd9209bffd
|
||||
guid: 62787afce42184c318d4d63b3bb40420
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
internal class AccessTokenMenu : MenuBase
|
||||
{
|
||||
protected override void GetGui()
|
||||
{
|
||||
if (this.Button("Refresh Access Token"))
|
||||
{
|
||||
FB.Mobile.RefreshCurrentAccessToken(this.HandleResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4cc408e158eec46b28b93a44fc8819ff
|
||||
timeCreated: 1447720427
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,45 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
|
||||
internal class AppEvents : MenuBase
|
||||
{
|
||||
protected override void GetGui()
|
||||
{
|
||||
if (this.Button("Log FB App Event"))
|
||||
{
|
||||
this.Status = "Logged FB.AppEvent";
|
||||
FB.LogAppEvent(
|
||||
AppEventName.UnlockedAchievement,
|
||||
null,
|
||||
new Dictionary<string, object>()
|
||||
{
|
||||
{ AppEventParameterName.Description, "Clicked 'Log AppEvent' button" }
|
||||
});
|
||||
LogView.AddLog(
|
||||
"You may see results showing up at https://www.facebook.com/analytics/"
|
||||
+ FB.AppId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e3c0dd81ff77c4c30834810815c69f6d
|
||||
timeCreated: 1435018470
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,38 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
internal class AppLinks : MenuBase
|
||||
{
|
||||
protected override void GetGui()
|
||||
{
|
||||
if (this.Button("Get App Link"))
|
||||
{
|
||||
FB.GetAppLink(this.HandleResult);
|
||||
}
|
||||
|
||||
if (Constants.IsMobile && this.Button("Fetch Deferred App Link"))
|
||||
{
|
||||
FB.Mobile.FetchDeferredAppLinkData(this.HandleResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f9f0b7257fa054227be6e26bf1f6b339
|
||||
timeCreated: 1435164891
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,143 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
internal class AppRequests : MenuBase
|
||||
{
|
||||
private string requestMessage = string.Empty;
|
||||
private string requestTo = string.Empty;
|
||||
private string requestFilter = string.Empty;
|
||||
private string requestExcludes = string.Empty;
|
||||
private string requestMax = string.Empty;
|
||||
private string requestData = string.Empty;
|
||||
private string requestTitle = string.Empty;
|
||||
private string requestObjectID = string.Empty;
|
||||
private int selectedAction = 0;
|
||||
private string[] actionTypeStrings =
|
||||
{
|
||||
"NONE",
|
||||
OGActionType.SEND.ToString(),
|
||||
OGActionType.ASKFOR.ToString(),
|
||||
OGActionType.TURN.ToString()
|
||||
};
|
||||
|
||||
protected override void GetGui()
|
||||
{
|
||||
if (this.Button("Select - Filter None"))
|
||||
{
|
||||
FB.AppRequest("Test Message", callback: this.HandleResult);
|
||||
}
|
||||
|
||||
if (this.Button("Select - Filter app_users"))
|
||||
{
|
||||
List<object> filter = new List<object>() { "app_users" };
|
||||
|
||||
// workaround for mono failing with named parameters
|
||||
FB.AppRequest("Test Message", null, filter, null, 0, string.Empty, string.Empty, this.HandleResult);
|
||||
}
|
||||
|
||||
if (this.Button("Select - Filter app_non_users"))
|
||||
{
|
||||
List<object> filter = new List<object>() { "app_non_users" };
|
||||
FB.AppRequest("Test Message", null, filter, null, 0, string.Empty, string.Empty, this.HandleResult);
|
||||
}
|
||||
|
||||
// Custom options
|
||||
this.LabelAndTextField("Message: ", ref this.requestMessage);
|
||||
this.LabelAndTextField("To (optional): ", ref this.requestTo);
|
||||
this.LabelAndTextField("Filter (optional): ", ref this.requestFilter);
|
||||
this.LabelAndTextField("Exclude Ids (optional): ", ref this.requestExcludes);
|
||||
this.LabelAndTextField("Filters: ", ref this.requestExcludes);
|
||||
this.LabelAndTextField("Max Recipients (optional): ", ref this.requestMax);
|
||||
this.LabelAndTextField("Data (optional): ", ref this.requestData);
|
||||
this.LabelAndTextField("Title (optional): ", ref this.requestTitle);
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.Label(
|
||||
"Request Action (optional): ",
|
||||
this.LabelStyle,
|
||||
GUILayout.MaxWidth(200 * this.ScaleFactor));
|
||||
|
||||
this.selectedAction = GUILayout.Toolbar(
|
||||
this.selectedAction,
|
||||
this.actionTypeStrings,
|
||||
this.ButtonStyle,
|
||||
GUILayout.MinHeight(ConsoleBase.ButtonHeight * this.ScaleFactor),
|
||||
GUILayout.MaxWidth(ConsoleBase.MainWindowWidth - 150));
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
this.LabelAndTextField("Request Object ID (optional): ", ref this.requestObjectID);
|
||||
|
||||
if (this.Button("Custom App Request"))
|
||||
{
|
||||
OGActionType? action = this.GetSelectedOGActionType();
|
||||
if (action != null)
|
||||
{
|
||||
FB.AppRequest(
|
||||
this.requestMessage,
|
||||
action.Value,
|
||||
this.requestObjectID,
|
||||
string.IsNullOrEmpty(this.requestTo) ? null : this.requestTo.Split(','),
|
||||
this.requestData,
|
||||
this.requestTitle,
|
||||
this.HandleResult);
|
||||
}
|
||||
else
|
||||
{
|
||||
FB.AppRequest(
|
||||
this.requestMessage,
|
||||
string.IsNullOrEmpty(this.requestTo) ? null : this.requestTo.Split(','),
|
||||
string.IsNullOrEmpty(this.requestFilter) ? null : this.requestFilter.Split(',').OfType<object>().ToList(),
|
||||
string.IsNullOrEmpty(this.requestExcludes) ? null : this.requestExcludes.Split(','),
|
||||
string.IsNullOrEmpty(this.requestMax) ? 0 : int.Parse(this.requestMax),
|
||||
this.requestData,
|
||||
this.requestTitle,
|
||||
this.HandleResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private OGActionType? GetSelectedOGActionType()
|
||||
{
|
||||
string actionString = this.actionTypeStrings[this.selectedAction];
|
||||
if (actionString == OGActionType.SEND.ToString())
|
||||
{
|
||||
return OGActionType.SEND;
|
||||
}
|
||||
else if (actionString == OGActionType.ASKFOR.ToString())
|
||||
{
|
||||
return OGActionType.ASKFOR;
|
||||
}
|
||||
else if (actionString == OGActionType.TURN.ToString())
|
||||
{
|
||||
return OGActionType.TURN;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3b4c675f81a254b87adc8ad01006c580
|
||||
timeCreated: 1435018470
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,125 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
internal class DialogShare : MenuBase
|
||||
{
|
||||
// Custom Share Link
|
||||
private string shareLink = "https://developers.facebook.com/";
|
||||
private string shareTitle = "Link Title";
|
||||
private string shareDescription = "Link Description";
|
||||
private string shareImage = "http://i.imgur.com/j4M7vCO.jpg";
|
||||
|
||||
// Custom Feed Share
|
||||
private string feedTo = string.Empty;
|
||||
private string feedLink = "https://developers.facebook.com/";
|
||||
private string feedTitle = "Test Title";
|
||||
private string feedCaption = "Test Caption";
|
||||
private string feedDescription = "Test Description";
|
||||
private string feedImage = "http://i.imgur.com/zkYlB.jpg";
|
||||
private string feedMediaSource = string.Empty;
|
||||
|
||||
protected override bool ShowDialogModeSelector()
|
||||
{
|
||||
#if !UNITY_EDITOR && (UNITY_IOS || UNITY_ANDROID)
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
protected override void GetGui()
|
||||
{
|
||||
bool enabled = GUI.enabled;
|
||||
if (this.Button("Share - Link"))
|
||||
{
|
||||
FB.ShareLink(new Uri("https://developers.facebook.com/"), callback: this.HandleResult);
|
||||
}
|
||||
|
||||
// Note: Web dialog doesn't support photo urls.
|
||||
if (this.Button("Share - Link Photo"))
|
||||
{
|
||||
FB.ShareLink(
|
||||
new Uri("https://developers.facebook.com/"),
|
||||
"Link Share",
|
||||
"Look I'm sharing a link",
|
||||
new Uri("http://i.imgur.com/j4M7vCO.jpg"),
|
||||
callback: this.HandleResult);
|
||||
}
|
||||
|
||||
this.LabelAndTextField("Link", ref this.shareLink);
|
||||
this.LabelAndTextField("Title", ref this.shareTitle);
|
||||
this.LabelAndTextField("Description", ref this.shareDescription);
|
||||
this.LabelAndTextField("Image", ref this.shareImage);
|
||||
if (this.Button("Share - Custom"))
|
||||
{
|
||||
FB.ShareLink(
|
||||
new Uri(this.shareLink),
|
||||
this.shareTitle,
|
||||
this.shareDescription,
|
||||
new Uri(this.shareImage),
|
||||
this.HandleResult);
|
||||
}
|
||||
|
||||
GUI.enabled = enabled && (!Constants.IsEditor || (Constants.IsEditor && FB.IsLoggedIn));
|
||||
if (this.Button("Feed Share - No To"))
|
||||
{
|
||||
FB.FeedShare(
|
||||
string.Empty,
|
||||
new Uri("https://developers.facebook.com/"),
|
||||
"Test Title",
|
||||
"Test caption",
|
||||
"Test Description",
|
||||
new Uri("http://i.imgur.com/zkYlB.jpg"),
|
||||
string.Empty,
|
||||
this.HandleResult);
|
||||
}
|
||||
|
||||
this.LabelAndTextField("To", ref this.feedTo);
|
||||
this.LabelAndTextField("Link", ref this.feedLink);
|
||||
this.LabelAndTextField("Title", ref this.feedTitle);
|
||||
this.LabelAndTextField("Caption", ref this.feedCaption);
|
||||
this.LabelAndTextField("Description", ref this.feedDescription);
|
||||
this.LabelAndTextField("Image", ref this.feedImage);
|
||||
this.LabelAndTextField("Media Source", ref this.feedMediaSource);
|
||||
if (this.Button("Feed Share - Custom"))
|
||||
{
|
||||
FB.FeedShare(
|
||||
this.feedTo,
|
||||
string.IsNullOrEmpty(this.feedLink) ? null : new Uri(this.feedLink),
|
||||
this.feedTitle,
|
||||
this.feedCaption,
|
||||
this.feedDescription,
|
||||
string.IsNullOrEmpty(this.feedImage) ? null : new Uri(this.feedImage),
|
||||
this.feedMediaSource,
|
||||
this.HandleResult);
|
||||
}
|
||||
|
||||
GUI.enabled = enabled;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e93c4155902d3496399630ee494eab6b
|
||||
timeCreated: 1435018470
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,93 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
internal class GraphRequest : MenuBase
|
||||
{
|
||||
private string apiQuery = string.Empty;
|
||||
private Texture2D profilePic;
|
||||
|
||||
protected override void GetGui()
|
||||
{
|
||||
bool enabled = GUI.enabled;
|
||||
GUI.enabled = enabled && FB.IsLoggedIn;
|
||||
if (this.Button("Basic Request - Me"))
|
||||
{
|
||||
FB.API("/me", HttpMethod.GET, this.HandleResult);
|
||||
}
|
||||
|
||||
if (this.Button("Retrieve Profile Photo"))
|
||||
{
|
||||
FB.API("/me/picture", HttpMethod.GET, this.ProfilePhotoCallback);
|
||||
}
|
||||
|
||||
if (this.Button("Take and Upload screenshot"))
|
||||
{
|
||||
this.StartCoroutine(this.TakeScreenshot());
|
||||
}
|
||||
|
||||
this.LabelAndTextField("Request", ref this.apiQuery);
|
||||
if (this.Button("Custom Request"))
|
||||
{
|
||||
FB.API(this.apiQuery, HttpMethod.GET, this.HandleResult);
|
||||
}
|
||||
|
||||
if (this.profilePic != null)
|
||||
{
|
||||
GUILayout.Box(this.profilePic);
|
||||
}
|
||||
|
||||
GUI.enabled = enabled;
|
||||
}
|
||||
|
||||
private void ProfilePhotoCallback(IGraphResult result)
|
||||
{
|
||||
if (string.IsNullOrEmpty(result.Error) && result.Texture != null)
|
||||
{
|
||||
this.profilePic = result.Texture;
|
||||
}
|
||||
|
||||
this.HandleResult(result);
|
||||
}
|
||||
|
||||
private IEnumerator TakeScreenshot()
|
||||
{
|
||||
yield return new WaitForEndOfFrame();
|
||||
|
||||
var width = Screen.width;
|
||||
var height = Screen.height;
|
||||
var tex = new Texture2D(width, height, TextureFormat.RGB24, false);
|
||||
|
||||
// Read screen contents into the texture
|
||||
tex.ReadPixels(new Rect(0, 0, width, height), 0, 0);
|
||||
tex.Apply();
|
||||
byte[] screenshot = tex.EncodeToPNG();
|
||||
|
||||
var wwwForm = new WWWForm();
|
||||
wwwForm.AddBinaryData("image", screenshot, "InteractiveConsole.png");
|
||||
wwwForm.AddField("message", "herp derp. I did a thing! Did I do this right?");
|
||||
FB.API("me/photos", HttpMethod.POST, this.HandleResult, wwwForm);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 23c3cb06c2209474e9a8441e2712d5d2
|
||||
timeCreated: 1435018470
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,283 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
|
||||
internal sealed class MainMenu : MenuBase
|
||||
{
|
||||
|
||||
enum Scope {
|
||||
PublicProfile = 1,
|
||||
UserFriends = 2,
|
||||
UserBirthday = 3,
|
||||
UserAgeRange = 4,
|
||||
PublishActions = 5,
|
||||
UserLocation = 6,
|
||||
UserHometown = 7,
|
||||
UserGender = 8,
|
||||
};
|
||||
|
||||
protected override bool ShowBackButton()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected override void GetGui()
|
||||
{
|
||||
GUILayout.BeginVertical();
|
||||
|
||||
|
||||
bool enabled = GUI.enabled;
|
||||
if (this.Button("FB.Init"))
|
||||
{
|
||||
FB.Init(this.OnInitComplete, this.OnHideUnity);
|
||||
this.Status = "FB.Init() called with " + FB.AppId;
|
||||
}
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
|
||||
GUI.enabled = enabled && FB.IsInitialized;
|
||||
if (this.Button("Classic login"))
|
||||
{
|
||||
this.CallFBLogin(LoginTracking.ENABLED, new HashSet<Scope> { Scope.PublicProfile });
|
||||
this.Status = "Classic login called";
|
||||
}
|
||||
if (this.Button("Get publish_actions"))
|
||||
{
|
||||
this.CallFBLoginForPublish();
|
||||
this.Status = "Login (for publish_actions) called";
|
||||
}
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.BeginHorizontal();
|
||||
|
||||
if (this.Button("Limited login"))
|
||||
{
|
||||
this.CallFBLogin(LoginTracking.LIMITED, new HashSet<Scope> { Scope.PublicProfile });
|
||||
this.Status = "Limited login called";
|
||||
|
||||
}
|
||||
if (this.Button("Limited login +friends"))
|
||||
{
|
||||
this.CallFBLogin(LoginTracking.LIMITED, new HashSet<Scope> { Scope.PublicProfile, Scope.UserFriends });
|
||||
this.Status = "Limited login +friends called";
|
||||
|
||||
}
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.BeginHorizontal();
|
||||
|
||||
if (this.Button("Limited Login+bday"))
|
||||
{
|
||||
this.CallFBLogin(LoginTracking.LIMITED, new HashSet<Scope> { Scope.PublicProfile, Scope.UserBirthday });
|
||||
this.Status = "Limited login +bday called";
|
||||
}
|
||||
|
||||
if (this.Button("Limited Login+agerange"))
|
||||
{
|
||||
this.CallFBLogin(LoginTracking.LIMITED, new HashSet<Scope> { Scope.PublicProfile, Scope.UserAgeRange });
|
||||
this.Status = "Limited login +agerange called";
|
||||
}
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.BeginHorizontal();
|
||||
|
||||
if (this.Button("Limited Login + location"))
|
||||
{
|
||||
this.CallFBLogin(LoginTracking.LIMITED, new HashSet<Scope> { Scope.PublicProfile, Scope.UserLocation });
|
||||
}
|
||||
|
||||
if (this.Button("Limited Login + Hometown"))
|
||||
{
|
||||
this.CallFBLogin(LoginTracking.LIMITED, new HashSet<Scope> { Scope.PublicProfile | Scope.UserHometown });
|
||||
}
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
GUILayout.BeginHorizontal();
|
||||
|
||||
if (this.Button("Limited Login + Gender"))
|
||||
{
|
||||
this.CallFBLogin(LoginTracking.LIMITED, new HashSet<Scope> { Scope.PublicProfile | Scope.UserGender });
|
||||
}
|
||||
|
||||
|
||||
GUI.enabled = FB.IsLoggedIn;
|
||||
|
||||
|
||||
// Fix GUILayout margin issues
|
||||
GUILayout.Label(GUIContent.none, GUILayout.MinWidth(ConsoleBase.MarginFix));
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
|
||||
// Fix GUILayout margin issues
|
||||
GUILayout.Label(GUIContent.none, GUILayout.MinWidth(ConsoleBase.MarginFix));
|
||||
GUILayout.EndHorizontal();
|
||||
|
||||
#if !UNITY_WEBGL
|
||||
if (this.Button("Logout"))
|
||||
{
|
||||
CallFBLogout();
|
||||
this.Status = "Logout called";
|
||||
}
|
||||
#endif
|
||||
|
||||
GUI.enabled = enabled && FB.IsInitialized;
|
||||
if (this.Button("Share Dialog"))
|
||||
{
|
||||
this.SwitchMenu(typeof(DialogShare));
|
||||
}
|
||||
|
||||
if (this.Button("App Requests"))
|
||||
{
|
||||
this.SwitchMenu(typeof(AppRequests));
|
||||
}
|
||||
|
||||
if (this.Button("Graph Request"))
|
||||
{
|
||||
this.SwitchMenu(typeof(GraphRequest));
|
||||
}
|
||||
|
||||
if (Constants.IsWeb && this.Button("Pay"))
|
||||
{
|
||||
this.SwitchMenu(typeof(Pay));
|
||||
}
|
||||
|
||||
if (this.Button("App Events"))
|
||||
{
|
||||
this.SwitchMenu(typeof(AppEvents));
|
||||
}
|
||||
|
||||
if (this.Button("App Links"))
|
||||
{
|
||||
this.SwitchMenu(typeof(AppLinks));
|
||||
}
|
||||
|
||||
if (this.Button("Tournaments"))
|
||||
{
|
||||
this.SwitchMenu(typeof(TournamentsMenu));
|
||||
}
|
||||
|
||||
if (Constants.IsMobile && this.Button("Access Token"))
|
||||
{
|
||||
this.SwitchMenu(typeof(AccessTokenMenu));
|
||||
}
|
||||
|
||||
GUILayout.EndVertical();
|
||||
|
||||
GUI.enabled = enabled;
|
||||
}
|
||||
|
||||
private void CallFBLogin(LoginTracking mode, HashSet<Scope> scope)
|
||||
{
|
||||
List<string> scopes = new List<string>();
|
||||
|
||||
if(scope.Contains(Scope.PublicProfile)) {
|
||||
scopes.Add("public_profile");
|
||||
}
|
||||
if(scope.Contains(Scope.UserFriends))
|
||||
{
|
||||
scopes.Add("user_friends");
|
||||
}
|
||||
if(scope.Contains(Scope.UserBirthday))
|
||||
{
|
||||
scopes.Add("user_birthday");
|
||||
}
|
||||
if(scope.Contains(Scope.UserAgeRange))
|
||||
{
|
||||
scopes.Add("user_age_range");
|
||||
}
|
||||
|
||||
if(scope.Contains(Scope.UserLocation))
|
||||
{
|
||||
scopes.Add("user_location");
|
||||
}
|
||||
|
||||
if(scope.Contains(Scope.UserHometown))
|
||||
{
|
||||
scopes.Add("user_hometown");
|
||||
}
|
||||
|
||||
if(scope.Contains(Scope.UserGender))
|
||||
{
|
||||
scopes.Add("user_gender");
|
||||
}
|
||||
|
||||
|
||||
if (mode == LoginTracking.ENABLED)
|
||||
{
|
||||
if (Constants.CurrentPlatform == FacebookUnityPlatform.IOS) {
|
||||
FB.Mobile.LoginWithTrackingPreference(LoginTracking.ENABLED, scopes, "classic_nonce123", this.HandleResult);
|
||||
} else {
|
||||
FB.LogInWithReadPermissions(scopes, this.HandleResult);
|
||||
}
|
||||
}
|
||||
else // mode == loginTracking.LIMITED
|
||||
{
|
||||
FB.Mobile.LoginWithTrackingPreference(LoginTracking.LIMITED, scopes, "limited_nonce123", this.HandleLimitedLoginResult);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void CallFBLoginForPublish()
|
||||
{
|
||||
// It is generally good behavior to split asking for read and publish
|
||||
// permissions rather than ask for them all at once.
|
||||
//
|
||||
// In your own game, consider postponing this call until the moment
|
||||
// you actually need it.
|
||||
FB.LogInWithPublishPermissions(new List<string>() { "publish_actions" }, this.HandleResult);
|
||||
}
|
||||
|
||||
private void CallFBLogout()
|
||||
{
|
||||
FB.LogOut();
|
||||
}
|
||||
|
||||
private void OnInitComplete()
|
||||
{
|
||||
this.Status = "Success - Check log for details";
|
||||
this.LastResponse = "Success Response: OnInitComplete Called\n";
|
||||
string logMessage = string.Format(
|
||||
"OnInitCompleteCalled IsLoggedIn='{0}' IsInitialized='{1}'",
|
||||
FB.IsLoggedIn,
|
||||
FB.IsInitialized);
|
||||
LogView.AddLog(logMessage);
|
||||
if (AccessToken.CurrentAccessToken != null)
|
||||
{
|
||||
LogView.AddLog(AccessToken.CurrentAccessToken.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
private void OnHideUnity(bool isGameShown)
|
||||
{
|
||||
this.Status = "Success - Check log for details";
|
||||
this.LastResponse = string.Format("Success Response: OnHideUnity Called {0}\n", isGameShown);
|
||||
LogView.AddLog("Is game shown: " + isGameShown);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 922e3ad8d88a146b3b392cd8c84edd6a
|
||||
timeCreated: 1465553943
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,45 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
using UnityEngine;
|
||||
|
||||
internal class Pay : MenuBase
|
||||
{
|
||||
private string payProduct = string.Empty;
|
||||
|
||||
protected override void GetGui()
|
||||
{
|
||||
this.LabelAndTextField("Product: ", ref this.payProduct);
|
||||
if (this.Button("Call Pay"))
|
||||
{
|
||||
this.CallFBPay();
|
||||
}
|
||||
|
||||
GUILayout.Space(10);
|
||||
}
|
||||
|
||||
private void CallFBPay()
|
||||
{
|
||||
FB.Canvas.Pay(this.payProduct, callback: this.HandleResult);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7f08c9721703046ec883e57562184726
|
||||
timeCreated: 1435018470
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,73 @@
|
|||
|
||||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Facebook.Unity.Example
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
internal class TournamentsMenu : MenuBase
|
||||
{
|
||||
private string score = string.Empty;
|
||||
private string tournamentID = string.Empty;
|
||||
|
||||
protected override void GetGui()
|
||||
{
|
||||
bool enabled = GUI.enabled;
|
||||
GUI.enabled = enabled && FB.IsLoggedIn;
|
||||
|
||||
if (this.Button("Get Tournaments"))
|
||||
{
|
||||
FB.Mobile.GetTournaments(this.HandleResult);
|
||||
}
|
||||
|
||||
GUILayout.Space(24);
|
||||
this.LabelAndTextField("Score:", ref this.score);
|
||||
this.LabelAndTextField("TournamentID:", ref this.tournamentID);
|
||||
if (this.Button("Post Score to Tournament"))
|
||||
{
|
||||
FB.Mobile.UpdateTournament(tournamentID, int.Parse(score), this.HandleResult);
|
||||
}
|
||||
|
||||
if (this.Button("Update Tournament and Share"))
|
||||
{
|
||||
FB.Mobile.UpdateAndShareTournament(tournamentID, int.Parse(score), this.HandleResult);
|
||||
}
|
||||
|
||||
if (this.Button("Create Tournament and Share"))
|
||||
{
|
||||
FB.Mobile.CreateAndShareTournament(
|
||||
int.Parse(score),
|
||||
"Unity Tournament",
|
||||
TournamentSortOrder.HigherIsBetter,
|
||||
TournamentScoreFormat.Numeric,
|
||||
DateTime.UtcNow.AddHours(2),
|
||||
"Unity SDK Tournament",
|
||||
this.HandleResult
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
GUI.enabled = enabled;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4ad38019c04d54713a79b19e9b246a0c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 959df250be4394f88b58738d1a9072b6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
|
@ -0,0 +1,55 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6f2bd1fb3a7ec4616b4311f171db577d
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
serializedVersion: 2
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
linearTexture: 0
|
||||
correctGamma: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 0
|
||||
cubemapConvolution: 0
|
||||
cubemapConvolutionSteps: 7
|
||||
cubemapConvolutionExponent: 1.5
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -1
|
||||
maxTextureSize: 1024
|
||||
textureSettings:
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -1
|
||||
wrapMode: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
rGBM: 0
|
||||
compressionQuality: 50
|
||||
allowsAlphaSplitting: 0
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spritePixelsToUnits: 100
|
||||
alphaIsTransparency: 0
|
||||
textureType: -1
|
||||
buildTargetSettings: []
|
||||
spriteSheet:
|
||||
sprites: []
|
||||
outline: []
|
||||
spritePackingTag:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,251 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 9
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.3731193, g: 0.38073996, b: 0.35872698, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 12
|
||||
m_GIWorkflowMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 12
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAmbientOcclusion: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 256
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 2
|
||||
m_BakeBackend: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_LightingSettings: {fileID: 0}
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
accuratePlacement: 0
|
||||
maxJobWorkers: 0
|
||||
preserveTilesOutsideBounds: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &1312537528
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1312537531}
|
||||
- component: {fileID: 1312537530}
|
||||
- component: {fileID: 1312537529}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &1312537529
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1312537528}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &1312537530
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1312537528}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &1312537531
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1312537528}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1992949226
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1992949227}
|
||||
- component: {fileID: 1992949228}
|
||||
m_Layer: 0
|
||||
m_Name: Tournaments Menu
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1992949227
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1992949226}
|
||||
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: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1992949228
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1992949226}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4ad38019c04d54713a79b19e9b246a0c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6ab92f99912824a619ebfd3d5d4ceb25
|
||||
guid: 6f8d688887086476cb9533793ffa1756
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 44628a62208674c55ad86da3c28a70ec
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,34 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Facebook.Unity;
|
||||
|
||||
public class FBWindowsA2UNotificationsManager : MonoBehaviour {
|
||||
|
||||
public FBWindowsLogsManager Logger;
|
||||
public InputField TitleText;
|
||||
public InputField BodyText;
|
||||
public InputField MediaText;
|
||||
public InputField PayloadText;
|
||||
public InputField TimeIntervalText;
|
||||
|
||||
public void ScheduleButton () {
|
||||
Logger.DebugLog("Scheduling notification ...");
|
||||
FB.ScheduleAppToUserNotification(TitleText.text, BodyText.text, new System.Uri(MediaText.text), int.Parse(TimeIntervalText.text), PayloadText.text, A2UNotificationCallback);
|
||||
}
|
||||
|
||||
private void A2UNotificationCallback(IScheduleAppToUserNotificationResult result)
|
||||
{
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Notification scheduled correctly.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a87b0532431cd8543ad24dba4f6553c9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,128 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Facebook.Unity;
|
||||
using System;
|
||||
|
||||
public class FBWindowsADSManager : MonoBehaviour
|
||||
{
|
||||
public FBWindowsLogsManager Logger;
|
||||
|
||||
public InputField InputInterstitialAd;
|
||||
public InputField InputRewardedVideo;
|
||||
|
||||
public void LoadRewardedVideo(string placementID)
|
||||
{
|
||||
Logger.DebugLog("Loading Rewarded Video");
|
||||
FB.LoadRewardedVideo(placementID, delegate (IRewardedVideoResult rewardedVideoResult)
|
||||
{
|
||||
if (rewardedVideoResult.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(rewardedVideoResult.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Rewarded Video "+ placementID + " loaded correctly!");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void ShowRewardedVideo(string placementID)
|
||||
{
|
||||
Logger.DebugLog("Showing Rewarded Video");
|
||||
FB.ShowRewardedVideo(placementID, delegate (IRewardedVideoResult rewardedVideoResult)
|
||||
{
|
||||
if (rewardedVideoResult.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(rewardedVideoResult.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Rewarded Video " + placementID + " showed correctly!");
|
||||
Logger.DebugLog("Here you can give a reward.");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public void LoadInterstitialAd(string placementID)
|
||||
{
|
||||
Logger.DebugLog("Loading Interstitial AD");
|
||||
FB.LoadInterstitialAd(placementID, delegate (IInterstitialAdResult interstitialAdResult)
|
||||
{
|
||||
if (interstitialAdResult.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(interstitialAdResult.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Interstitial AD " + placementID + " loaded correctly!");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void ShowInterstitialAd(string placementID)
|
||||
{
|
||||
Logger.DebugLog("Showing Interstitial AD");
|
||||
FB.ShowInterstitialAd(placementID, delegate (IInterstitialAdResult interstitialAdResult)
|
||||
{
|
||||
if (interstitialAdResult.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(interstitialAdResult.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Interstitial AD " + placementID + " showed correctly!");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public void OnButtonLoadInterstitialAd()
|
||||
{
|
||||
if (!String.IsNullOrEmpty(InputInterstitialAd.text)) {
|
||||
LoadInterstitialAd(InputInterstitialAd.text);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Please, insert interstitial placement ID code.");
|
||||
}
|
||||
}
|
||||
|
||||
public void OnButtonShowInterstitialAd()
|
||||
{
|
||||
if (!String.IsNullOrEmpty(InputInterstitialAd.text))
|
||||
{
|
||||
ShowInterstitialAd(InputInterstitialAd.text);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Please, insert interstitial placement ID code.");
|
||||
}
|
||||
}
|
||||
|
||||
public void OnButtonLoadRewardedVideo()
|
||||
{
|
||||
if (!String.IsNullOrEmpty(InputRewardedVideo.text))
|
||||
{
|
||||
LoadRewardedVideo(InputRewardedVideo.text);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Please, insert rewarded video placement ID code.");
|
||||
}
|
||||
}
|
||||
|
||||
public void OnButtonShowRewardedVideo()
|
||||
{
|
||||
if (!String.IsNullOrEmpty(InputRewardedVideo.text))
|
||||
{
|
||||
ShowRewardedVideo(InputRewardedVideo.text);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Please, insert rewarded video placement ID code.");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 67f2f22b10b98134995830e8bee86439
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,22 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class FBWindowsExampleTabsManager : MonoBehaviour
|
||||
{
|
||||
public GameObject[] sections;
|
||||
|
||||
void Start()
|
||||
{
|
||||
ShowTab(0);
|
||||
}
|
||||
|
||||
public void ShowTab(int id)
|
||||
{
|
||||
foreach (GameObject section in sections)
|
||||
{
|
||||
section.SetActive(false);
|
||||
}
|
||||
sections[id].SetActive(true);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d684454c7ae4aa749bf72961f5d54d1a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,105 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Facebook.Unity;
|
||||
using System;
|
||||
|
||||
public class FBWindowsFriendsManager : MonoBehaviour {
|
||||
|
||||
public FBWindowsLogsManager Logger;
|
||||
public Transform ReceivedInvitationsPanelTransform;
|
||||
public GameObject ShowReceivedInvitation;
|
||||
|
||||
public void Button_OpenReceivedInvitations()
|
||||
{
|
||||
if (FB.IsLoggedIn)
|
||||
{
|
||||
FB.OpenFriendFinderDialog(OpenFriendsDialogCallBack);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Login First");
|
||||
}
|
||||
}
|
||||
|
||||
private void OpenFriendsDialogCallBack(IGamingServicesFriendFinderResult result)
|
||||
{
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Friends Dialog openned succesflly");
|
||||
}
|
||||
}
|
||||
|
||||
public void Button_GetFriendFinderInvitations()
|
||||
{
|
||||
if (FB.IsLoggedIn)
|
||||
{
|
||||
FB.GetFriendFinderInvitations(GetFriendFinderInvitationsCallback);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Login First");
|
||||
}
|
||||
}
|
||||
|
||||
private void GetFriendFinderInvitationsCallback(IFriendFinderInvitationResult receivedInvitations)
|
||||
{
|
||||
Logger.DebugLog("Processing received invitations...");
|
||||
if (FB.IsLoggedIn)
|
||||
{
|
||||
foreach (Transform child in ReceivedInvitationsPanelTransform)
|
||||
{
|
||||
Destroy(child.gameObject);
|
||||
}
|
||||
|
||||
if (receivedInvitations.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(receivedInvitations.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (receivedInvitations.Invitations.Count <= 0)
|
||||
{
|
||||
Logger.DebugLog("No invitations received.");
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (FriendFinderInviation item in receivedInvitations.Invitations)
|
||||
{
|
||||
GameObject obj = (GameObject)Instantiate(ShowReceivedInvitation);
|
||||
obj.transform.SetParent(ReceivedInvitationsPanelTransform, false);
|
||||
obj.transform.localScale = new Vector3(1, 1, 1);
|
||||
|
||||
Button button = obj.GetComponent<Button>();
|
||||
button.onClick.AddListener(() => { button.interactable = false; FB.DeleteFriendFinderInvitation(item.Id, DeleteFriendFinderInvitationCallback); });
|
||||
|
||||
Text textComponent = obj.GetComponentInChildren<Text>();
|
||||
textComponent.text = "ApplicationName: " + item.ApplicationName + "\nFrom: " + item.FromName + "\nTo: " + item.ToName + "\nMessage: " + item.Message + "\nTime: " + item.CreatedTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Login First");
|
||||
}
|
||||
}
|
||||
|
||||
private void DeleteFriendFinderInvitationCallback(IFriendFinderInvitationResult receivedInvitations)
|
||||
{
|
||||
if (receivedInvitations.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(receivedInvitations.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Inviation deleted succesfully. Give a reward at this point if you want.");
|
||||
}
|
||||
Button_GetFriendFinderInvitations();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cdcf7065d5dd5214c8e6b1088e8d7dce
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Facebook.Unity;
|
||||
|
||||
public class FBWindowsGraphAPIManager : MonoBehaviour
|
||||
{
|
||||
public FBWindowsLogsManager Logger;
|
||||
public InputField QueryText;
|
||||
public Dropdown QueryType;
|
||||
public InputField GraphAPIVersionText;
|
||||
public Text GraphAPIVersion;
|
||||
private IDictionary<string, string> formData = null;
|
||||
|
||||
void Start()
|
||||
{
|
||||
GraphAPIVersionText.text = Constants.GraphApiVersion;
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
GraphAPIVersion.text = " Current Graph API version: " + FB.GraphApiVersion + "\n SDK Graph API version: " + Constants.GraphApiVersion;
|
||||
}
|
||||
|
||||
public void GraphAPI()
|
||||
{
|
||||
HttpMethod typeQuery = (HttpMethod)Enum.Parse(typeof(HttpMethod), QueryType.options[QueryType.value].text);
|
||||
FB.API(QueryText.text, typeQuery, (result) =>
|
||||
{
|
||||
Logger.DebugLog(result.RawResult);
|
||||
}, formData);
|
||||
}
|
||||
|
||||
public void SetGraphAPiVersion()
|
||||
{
|
||||
if (GraphAPIVersionText.text != "")
|
||||
{
|
||||
FB.GraphApiVersion = GraphAPIVersionText.text;
|
||||
}
|
||||
OnEnable();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f7c6c79221d642a49a2d6c7008efb024
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,49 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Facebook.Unity;
|
||||
|
||||
public class FBWindowsInitManager : MonoBehaviour
|
||||
{
|
||||
public FBWindowsLogsManager Logger;
|
||||
|
||||
public void InitButton()
|
||||
{
|
||||
if (!FB.IsInitialized)
|
||||
{
|
||||
FB.Init(InitCallback, OnHideUnity);
|
||||
}
|
||||
else
|
||||
{
|
||||
FB.ActivateApp();
|
||||
}
|
||||
}
|
||||
|
||||
private void InitCallback()
|
||||
{
|
||||
if (FB.IsInitialized)
|
||||
{
|
||||
Logger.DebugLog("SDK correctly initializated: " + FB.FacebookImpl.SDKUserAgent);
|
||||
|
||||
FB.ActivateApp();
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugErrorLog("Failed to Initialize the Facebook SDK");
|
||||
}
|
||||
}
|
||||
|
||||
private void OnHideUnity(bool isGameShown)
|
||||
{
|
||||
if (!isGameShown)
|
||||
{
|
||||
// Pause the game - we will need to hide
|
||||
Time.timeScale = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Resume the game - we're getting focus again
|
||||
Time.timeScale = 1;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 645295939ce40b34da9edd1810f5ba00
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,122 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Facebook.Unity;
|
||||
using System;
|
||||
|
||||
public class FBWindowsLoginManager : MonoBehaviour
|
||||
{
|
||||
public FBWindowsLogsManager Logger;
|
||||
public InputField Permissions;
|
||||
public RawImage UserImage;
|
||||
public Text UserName;
|
||||
|
||||
|
||||
public void LogInReadButton()
|
||||
{
|
||||
if (FB.IsInitialized)
|
||||
{
|
||||
FB.LogInWithReadPermissions(Permissions.text.Split(','), AuthCallback);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Not Init");
|
||||
}
|
||||
}
|
||||
|
||||
public void LogInPublishButton()
|
||||
{
|
||||
if (FB.IsInitialized)
|
||||
{
|
||||
FB.LogInWithPublishPermissions(Permissions.text.Split(','), AuthCallback);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Not Init");
|
||||
}
|
||||
}
|
||||
|
||||
public void LogOutButton()
|
||||
{
|
||||
if (FB.IsLoggedIn)
|
||||
{
|
||||
FB.LogOut();
|
||||
Logger.DebugLog("Logged out");
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Login First");
|
||||
}
|
||||
}
|
||||
|
||||
private void AuthCallback(ILoginResult result)
|
||||
{
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog("Error: " + result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (FB.IsLoggedIn)
|
||||
{
|
||||
// AccessToken class will have session details
|
||||
var aToken = Facebook.Unity.AccessToken.CurrentAccessToken;
|
||||
// Print current access token's User ID
|
||||
Logger.DebugLog("aToken.UserId: " + aToken.UserId);
|
||||
// Print current access token's granted permissions
|
||||
foreach (string perm in aToken.Permissions)
|
||||
{
|
||||
Logger.DebugLog("perm: " + perm);
|
||||
}
|
||||
//get current profile data
|
||||
GetCurrentProfile();
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("User cancelled login");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void GetCurrentProfile()
|
||||
{
|
||||
Logger.DebugLog("Getting current user profile ...");
|
||||
|
||||
FB.CurrentProfile((IProfileResult result) =>
|
||||
{
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog(result.CurrentProfile.UserID);
|
||||
Logger.DebugLog(result.CurrentProfile.Name);
|
||||
Logger.DebugLog(result.CurrentProfile.FirstName);
|
||||
Logger.DebugLog(result.CurrentProfile.Email);
|
||||
Logger.DebugLog(result.CurrentProfile.ImageURL);
|
||||
|
||||
UserName.text = result.CurrentProfile.Name + " " + result.CurrentProfile.LastName;
|
||||
if (result.CurrentProfile.ImageURL != "" && result.CurrentProfile.ImageURL != null)
|
||||
{
|
||||
StartCoroutine(LoadPictureFromUrl(result.CurrentProfile.ImageURL, UserImage));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
IEnumerator LoadPictureFromUrl(string url, RawImage itemImage)
|
||||
{
|
||||
Texture2D UserPicture = new Texture2D(32, 32);
|
||||
|
||||
WWW www = new WWW(url);
|
||||
yield return www;
|
||||
|
||||
www.LoadImageIntoTexture(UserPicture);
|
||||
www.Dispose();
|
||||
www = null;
|
||||
|
||||
itemImage.texture = UserPicture;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3bd31f5b4e50e1f4ebd23bab7e8dc57e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,45 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
public class FBWindowsLogsManager : MonoBehaviour
|
||||
{
|
||||
public Text LogText;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
#if !UNITY_EDITOR_WIN
|
||||
Debug.Log("This example is only for Windows devices.");
|
||||
#else
|
||||
if (EditorUserBuildSettings.activeBuildTarget != BuildTarget.StandaloneWindows && EditorUserBuildSettings.activeBuildTarget != BuildTarget.StandaloneWindows64)
|
||||
{
|
||||
Debug.Log("This example is only for Windows build target (x86 or x84).");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
public void DebugLog(string message)
|
||||
{
|
||||
LogText.text += "<color=white>" + message + "</color> \n";
|
||||
}
|
||||
|
||||
public void DebugErrorLog(string message)
|
||||
{
|
||||
LogText.text += "<color=red>" + message + "</color> \n";
|
||||
}
|
||||
|
||||
public void DebugWarningLog(string message)
|
||||
{
|
||||
LogText.text += "<color=yellow>" + message + "</color> \n";
|
||||
}
|
||||
|
||||
public void DebugClean()
|
||||
{
|
||||
LogText.text = "";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9f240dd53cc273847b9bbd76d0516894
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,171 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Facebook.Unity;
|
||||
|
||||
public class FBWindowsPurchaseManager : MonoBehaviour
|
||||
{
|
||||
public FBWindowsLogsManager Logger;
|
||||
public GameObject ProductGameObject;
|
||||
public Transform CatalogPanelTarnsform;
|
||||
public Transform PurchasesPanelTarnsform;
|
||||
|
||||
// IN APP PURCHASES CATALOG FUNCTIONS ----------------------------------------------------------------------------------------------------------
|
||||
public void GetCatalogButton()
|
||||
{
|
||||
if (FB.IsLoggedIn)
|
||||
{
|
||||
Logger.DebugLog("GetCatalog");
|
||||
FB.GetCatalog(ProcessGetCatalog);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Login First");
|
||||
}
|
||||
}
|
||||
|
||||
private void ProcessGetCatalog(ICatalogResult result)
|
||||
{
|
||||
foreach (Transform child in CatalogPanelTarnsform)
|
||||
{
|
||||
Destroy(child.gameObject);
|
||||
}
|
||||
|
||||
if (FB.IsLoggedIn)
|
||||
{
|
||||
Logger.DebugLog("Processing Catalog");
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (Product item in result.Products)
|
||||
{
|
||||
string itemInfo = item.Title + "\n";
|
||||
itemInfo += item.Description + "\n";
|
||||
itemInfo += item.Price;
|
||||
|
||||
GameObject newProduct = Instantiate(ProductGameObject, CatalogPanelTarnsform);
|
||||
|
||||
newProduct.GetComponentInChildren<Text>().text = itemInfo;
|
||||
newProduct.GetComponentInChildren<Button>().onClick.AddListener(() => FB.Purchase(item.ProductID, ProcessPurchase, "FB_PayLoad"));
|
||||
|
||||
if (item.ImageURI != "")
|
||||
{
|
||||
StartCoroutine(LoadPictureFromUrl(item.ImageURI, newProduct.GetComponentInChildren<RawImage>()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Login First");
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator LoadPictureFromUrl(string url, RawImage itemImage)
|
||||
{
|
||||
Texture2D UserPicture = new Texture2D(32, 32);
|
||||
|
||||
WWW www = new WWW(url);
|
||||
yield return www;
|
||||
|
||||
www.LoadImageIntoTexture(UserPicture);
|
||||
www.Dispose();
|
||||
www = null;
|
||||
|
||||
itemImage.texture = UserPicture;
|
||||
}
|
||||
|
||||
private void ProcessPurchase(IPurchaseResult result)
|
||||
{
|
||||
Logger.DebugLog("Purchase result");
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Product Purchased: " + result.Purchase.ProductID);
|
||||
Logger.DebugLog("----------------------------------");
|
||||
Logger.DebugLog("ProductID: " + result.Purchase.ProductID);
|
||||
Logger.DebugLog("IsConsumed: " + result.Purchase.IsConsumed);
|
||||
Logger.DebugLog("DeveloperPayload: " + result.Purchase.DeveloperPayload);
|
||||
Logger.DebugLog("PaymentID: " + result.Purchase.PaymentID);
|
||||
Logger.DebugLog("PaymentActionType: " + result.Purchase.PaymentActionType);
|
||||
Logger.DebugLog("PurchasePlatform: " + result.Purchase.PurchasePlatform);
|
||||
Logger.DebugLog("PurchasePrice.Amount: " + result.Purchase.PurchasePrice.Amount);
|
||||
Logger.DebugLog("PurchasePrice.Currency: " + result.Purchase.PurchasePrice.Currency);
|
||||
Logger.DebugLog("PurchaseTime: " + result.Purchase.PurchaseTime);
|
||||
Logger.DebugLog("PurchaseToken: " + result.Purchase.PurchaseToken);
|
||||
Logger.DebugLog("SignedRequest: " + result.Purchase.SignedRequest);
|
||||
Logger.DebugLog("----------------------------------");
|
||||
}
|
||||
GetPurchases();
|
||||
}
|
||||
|
||||
// IN APP PURCHASES PURCHASES FUNCTIONS ----------------------------------------------------------------------------------------------------------
|
||||
public void GetPurchases()
|
||||
{
|
||||
Logger.DebugLog("Getting purchases...");
|
||||
FB.GetPurchases(processPurchases);
|
||||
}
|
||||
|
||||
private void processPurchases(IPurchasesResult result)
|
||||
{
|
||||
foreach (Transform child in PurchasesPanelTarnsform)
|
||||
{
|
||||
Destroy(child.gameObject);
|
||||
}
|
||||
|
||||
if (FB.IsLoggedIn)
|
||||
{
|
||||
Logger.DebugLog("Processing Purchases...");
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (result.Purchases != null)
|
||||
{
|
||||
foreach (Purchase item in result.Purchases)
|
||||
{
|
||||
string itemInfo = item.ProductID + "\n";
|
||||
itemInfo += item.PurchasePlatform + "\n";
|
||||
itemInfo += item.PurchaseToken;
|
||||
|
||||
GameObject newProduct = Instantiate(ProductGameObject, PurchasesPanelTarnsform);
|
||||
|
||||
newProduct.GetComponentInChildren<Text>().text = itemInfo;
|
||||
newProduct.GetComponentInChildren<Button>().onClick.AddListener(() =>
|
||||
{
|
||||
FB.ConsumePurchase(item.PurchaseToken, delegate (IConsumePurchaseResult consumeResult)
|
||||
{
|
||||
if (consumeResult.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(consumeResult.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Product consumed correctly! ProductID:" + item.ProductID);
|
||||
}
|
||||
GetPurchases();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("No purchases");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugWarningLog("Login First");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 75adb6f2e516703489df2362d990ebea
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,66 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Facebook.Unity;
|
||||
using Facebook.MiniJSON;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
public class FBWindowsShareManager : MonoBehaviour
|
||||
{
|
||||
|
||||
public FBWindowsLogsManager Logger;
|
||||
public InputField Caption;
|
||||
public InputField ImageFile;
|
||||
public InputField VideoFile;
|
||||
public InputField TravelID;
|
||||
public Toggle ShouldShowDialog;
|
||||
public Button ImageUploadButton;
|
||||
public Button VideoUploadButton;
|
||||
|
||||
public void Button_UploadImage()
|
||||
{
|
||||
string imagePath = Path.GetFullPath(Application.streamingAssetsPath + "/" + ImageFile.text);
|
||||
ImageUploadButton.interactable = false;
|
||||
Logger.DebugLog("Uploading image file [" + imagePath + "] to media library");
|
||||
FB.UploadImageToMediaLibrary(Caption.text, new Uri(imagePath), ShouldShowDialog.isOn, TravelID.text, CallbackUploadImage);
|
||||
}
|
||||
|
||||
public void Button_UploadVideo()
|
||||
{
|
||||
string videoPath = Path.GetFullPath(Application.streamingAssetsPath + "/" + VideoFile.text);
|
||||
VideoUploadButton.interactable = false;
|
||||
Logger.DebugLog("Uploading video file [" + videoPath + "] to media library");
|
||||
FB.UploadVideoToMediaLibrary(Caption.text, new Uri(videoPath), ShouldShowDialog.isOn, TravelID.text, CallbackUploadVideo);
|
||||
}
|
||||
|
||||
private void CallbackUploadImage(IMediaUploadResult result)
|
||||
{
|
||||
ImageUploadButton.interactable = true;
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog("Image upload error: " + result.RawResult);
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Image uploaded. ID: " + result.MediaId);
|
||||
}
|
||||
}
|
||||
|
||||
private void CallbackUploadVideo(IMediaUploadResult result)
|
||||
{
|
||||
VideoUploadButton.interactable = true;
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog("Video upload error: " + result.RawResult);
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Video uploaded. ID: " + result.MediaId);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6d2b9aa5c2a660f4394334fa45fc34cd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,138 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Facebook.Unity;
|
||||
using Facebook.MiniJSON;
|
||||
|
||||
public class FBWindowsTournamentsManager : MonoBehaviour {
|
||||
|
||||
public FBWindowsLogsManager Logger;
|
||||
public InputField Title;
|
||||
public InputField Image;
|
||||
public Dropdown SortOrder;
|
||||
public Dropdown ScoreFormat;
|
||||
public InputField Data;
|
||||
public InputField InitialScore;
|
||||
public InputField Score;
|
||||
public InputField ShareData;
|
||||
|
||||
|
||||
private Dictionary<string, string> ConvertDataToDict(string UTF8String)
|
||||
{
|
||||
Encoding unicode = Encoding.Unicode;
|
||||
var unicodeData = Encoding.Convert(Encoding.UTF8, unicode, Encoding.UTF8.GetBytes(UTF8String));
|
||||
|
||||
char[] unicodeDataChars = new char[unicode.GetCharCount(unicodeData, 0, unicodeData.Length)];
|
||||
Encoding.Unicode.GetChars(unicodeData, 0, unicodeData.Length, unicodeDataChars, 0);
|
||||
|
||||
var data = Json.Deserialize(new string(unicodeDataChars)) as Dictionary<string, object>;
|
||||
Dictionary<string, string> result = new Dictionary<string, string>();
|
||||
if (data != null)
|
||||
{
|
||||
foreach (KeyValuePair<string, object> keyValuePair in data)
|
||||
{
|
||||
result.Add(keyValuePair.Key, keyValuePair.Value == null ? "" : keyValuePair.Value.ToString());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("Wrong Data Json");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public void Button_CreateTournament()
|
||||
{
|
||||
FB.CreateTournament(
|
||||
int.Parse(InitialScore.text),
|
||||
Title.text,
|
||||
Image.text,
|
||||
SortOrder.options[SortOrder.value].text,
|
||||
ScoreFormat.options[ScoreFormat.value].text,
|
||||
ConvertDataToDict(Data.text),
|
||||
CallbackCreateTournament
|
||||
);
|
||||
}
|
||||
|
||||
private void CallbackCreateTournament(ITournamentResult result)
|
||||
{
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog(result.RawResult);
|
||||
}
|
||||
}
|
||||
|
||||
public void Button_PostSessionScore()
|
||||
{
|
||||
FB.PostSessionScore(int.Parse(Score.text), CallbackPostSessionScore);
|
||||
}
|
||||
|
||||
private void CallbackPostSessionScore(ISessionScoreResult result)
|
||||
{
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog(result.RawResult);
|
||||
}
|
||||
}
|
||||
|
||||
public void Button_PostTournamentScore()
|
||||
{
|
||||
FB.PostTournamentScore(int.Parse(Score.text), CallbackPostTournamentScore);
|
||||
}
|
||||
|
||||
private void CallbackPostTournamentScore(ITournamentScoreResult result)
|
||||
{
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog(result.RawResult);
|
||||
}
|
||||
}
|
||||
|
||||
public void Button_ShareTournament()
|
||||
{
|
||||
FB.ShareTournament(int.Parse(Score.text), ConvertDataToDict(ShareData.text), CallbackShareTournament);
|
||||
}
|
||||
|
||||
private void CallbackShareTournament(ITournamentScoreResult result)
|
||||
{
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog(result.RawResult);
|
||||
}
|
||||
}
|
||||
|
||||
public void Button_GetTournament()
|
||||
{
|
||||
FB.GetTournament(CallbackGetTournament);
|
||||
}
|
||||
|
||||
private void CallbackGetTournament(ITournamentResult result)
|
||||
{
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog(result.RawResult);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a04a3f841e0a748058e520e5cddc969a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,29 @@
|
|||
using Facebook.Unity;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class FBWindowsVirtualGamepadManager : MonoBehaviour
|
||||
{
|
||||
public FBWindowsLogsManager Logger;
|
||||
public InputField NewVirtualGamepadLayout;
|
||||
|
||||
public void SetVirtualGamepadLayout()
|
||||
{
|
||||
Logger.DebugLog("Setting Virtual Gamepad Layout to " + NewVirtualGamepadLayout.text);
|
||||
FB.Windows.SetVirtualGamepadLayout(NewVirtualGamepadLayout.text, CallbackSetVirtualGamepadLayout);
|
||||
}
|
||||
|
||||
private void CallbackSetVirtualGamepadLayout(IVirtualGamepadLayoutResult result)
|
||||
{
|
||||
if (result.Error != null)
|
||||
{
|
||||
Logger.DebugErrorLog("Error setting Virtual Gamepad Layout: " + result.RawResult);
|
||||
Logger.DebugErrorLog(result.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.DebugLog("Virtual Gamepad Layout set: " + result.Success);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 59e12909d8366e14fadb4c9f13d6d4d6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,266 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 1567119579597618}
|
||||
m_IsPrefabParent: 1
|
||||
--- !u!1 &1039890751889438
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 224170540332740994}
|
||||
- component: {fileID: 222374393464265544}
|
||||
- component: {fileID: 114589250012257646}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1567119579597618
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 224748896762943362}
|
||||
- component: {fileID: 222890187105547058}
|
||||
- component: {fileID: 114995933577101576}
|
||||
- component: {fileID: 114926984373189736}
|
||||
m_Layer: 5
|
||||
m_Name: PurchaseButton
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1981531393416952
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 224194287179867746}
|
||||
- component: {fileID: 222292886917834082}
|
||||
- component: {fileID: 114277254824377252}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &114277254824377252
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1981531393416952}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -98529514, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Texture: {fileID: 0}
|
||||
m_UVRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
--- !u!114 &114589250012257646
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1039890751889438}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 14
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 1
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 0
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Buy
|
||||
--- !u!114 &114926984373189736
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1567119579597618}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, 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_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_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 114995933577101576}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!114 &114995933577101576
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1567119579597618}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
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
|
||||
--- !u!222 &222292886917834082
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1981531393416952}
|
||||
--- !u!222 &222374393464265544
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1039890751889438}
|
||||
--- !u!222 &222890187105547058
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1567119579597618}
|
||||
--- !u!224 &224170540332740994
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1039890751889438}
|
||||
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: 224748896762943362}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 22.099998, y: 0}
|
||||
m_SizeDelta: {x: -54.2, y: -10}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!224 &224194287179867746
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1981531393416952}
|
||||
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: 224748896762943362}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.5}
|
||||
m_AnchorMax: {x: 0, y: 0.5}
|
||||
m_AnchoredPosition: {x: 25.6, y: 0}
|
||||
m_SizeDelta: {x: 32, y: 32}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!224 &224748896762943362
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1567119579597618}
|
||||
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: 224194287179867746}
|
||||
- {fileID: 224170540332740994}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 48ecc8417590fd543b994fb05d0e5c9d
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 100100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8580f3463016e4f4c9801df8f4758dd6
|
||||
guid: a3acdfcd48c61dc4a89fc0056edf3fc6
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: be089950c3499465cabe7bb1e79a34d8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2d7410c0d2dbe401dab684e609883fad
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
|
@ -0,0 +1,154 @@
|
|||
fileFormatVersion: 2
|
||||
guid: fb286cd0f33ce4f5e81baf10dab8d865
|
||||
timeCreated: 1561663365
|
||||
licenseType: Pro
|
||||
PluginImporter:
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
data:
|
||||
first:
|
||||
'': Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude LinuxUniversal: 1
|
||||
Exclude OSXIntel: 1
|
||||
Exclude OSXIntel64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude WebGL: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 1
|
||||
Exclude tvOS: 1
|
||||
data:
|
||||
first:
|
||||
'': Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
OS: AnyOS
|
||||
data:
|
||||
first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
data:
|
||||
first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
data:
|
||||
first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
data:
|
||||
first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Standalone: OSXIntel
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Standalone: OSXIntel64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
data:
|
||||
first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
data:
|
||||
first:
|
||||
tvOS: tvOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 005f27358f56e4b43a67fb0936f6de04
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
|
@ -0,0 +1,32 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1410100ba8d214d96be3b84ef7409ae5
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bc8c53fdee83842cbabb44f17c871028
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,276 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
|
||||
*
|
||||
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
||||
* copy, modify, and distribute this software in source code or binary form for use
|
||||
* in connection with the web services and APIs provided by Facebook.
|
||||
*
|
||||
* As with any software that integrates with the Facebook platform, your use of
|
||||
* this software is subject to the Facebook Developer Principles and Policies
|
||||
* [http://developers.facebook.com/policy/]. This copyright notice shall be
|
||||
* included in all copies or substantial portions of the software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
var FBUnityLib = {
|
||||
$FBUnity: {
|
||||
init: function(connectFacebookUrl, locale, debug, initParams, status) {
|
||||
// make element for js sdk
|
||||
if (!document.getElementById('fb-root')) {
|
||||
var fbroot = document.createElement('div');
|
||||
fbroot.id = 'fb-root';
|
||||
var body = document.getElementsByTagName('body')[0];
|
||||
body.insertBefore(fbroot, body.children[0]);
|
||||
}
|
||||
|
||||
// load js sdk
|
||||
var js, id = 'facebook-jssdk', ref = document.getElementsByTagName('script')[0];
|
||||
if (document.getElementById(id)) {return;}
|
||||
js = document.createElement('script'); js.id = id; js.async = true;
|
||||
js.src = connectFacebookUrl + '/' + locale + '/sdk' + (debug ? '/debug' : '') + '.js';
|
||||
ref.parentNode.insertBefore(js, ref);
|
||||
// once jssdk is loaded, init
|
||||
window.fbAsyncInit = function() {
|
||||
initParams = JSON.parse(initParams);
|
||||
initParams.hideFlashCallback = FBUnity.onHideUnity;
|
||||
FB.init(initParams);
|
||||
// send url to unity - needed for deep linking
|
||||
FBUnity.sendMessage('OnUrlResponse', location.href);
|
||||
if (status) {
|
||||
FBUnity.onInitWithStatus();
|
||||
} else {
|
||||
FBUnity.onInit();
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
initScreenPosition: function() {
|
||||
if (!screenPosition) {
|
||||
var body = document.getElementsByTagName('body')[0];
|
||||
var screenPosition = {omo : body.onmouseover || function(){}, iframeX: 0, iframeY: 0};
|
||||
body.onmouseover = function(e) {
|
||||
// Distance from top of screen to top of client area
|
||||
screenPosition.iframeX = e.screenX - e.clientX;
|
||||
screenPosition.iframeY = e.screenY - e.clientY;
|
||||
|
||||
screenPosition.omo(e);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
sendMessage: function(method, param) {
|
||||
SendMessage('FacebookJsBridge', method, param);
|
||||
},
|
||||
|
||||
login: function(scope, callback_id) {
|
||||
FB.login(FBUnity.loginCallback.bind(null, callback_id), scope ? {scope: scope, auth_type: 'rerequest', return_scopes: true} : {return_scopes: true});
|
||||
},
|
||||
|
||||
loginCallback: function(callback_id, response) {
|
||||
response = {'callback_id': callback_id, 'response': response};
|
||||
FBUnity.sendMessage('OnLoginComplete', JSON.stringify(response));
|
||||
},
|
||||
|
||||
onInitWithStatus: function() {
|
||||
var timeoutHandler = setTimeout(function() { requestFailed(); }, 3000);
|
||||
|
||||
function requestFailed() {
|
||||
FBUnity.onInit();
|
||||
}
|
||||
|
||||
// try to get the login status right after init'ing
|
||||
FB.getLoginStatus(function(response) {
|
||||
clearTimeout(timeoutHandler);
|
||||
FBUnity.onInit(response);
|
||||
});
|
||||
},
|
||||
|
||||
onInit: function(response) {
|
||||
var jsonResponse = '';
|
||||
if (response && response.authResponse) {
|
||||
jsonResponse = JSON.stringify(response);
|
||||
}
|
||||
|
||||
FBUnity.sendMessage('OnInitComplete', jsonResponse);
|
||||
FB.Event.subscribe('auth.authResponseChange', function(r){ FBUnity.onAuthResponseChange(r) });
|
||||
|
||||
FBUnity.logLoadingTime(response);
|
||||
},
|
||||
|
||||
logLoadingTime: function(response) {
|
||||
FB.Canvas.setDoneLoading(
|
||||
function(result) {
|
||||
// send implicitly event to log the time from the canvas pages load to facebook init being called.
|
||||
FBUnity.logAppEvent('fb_canvas_time_till_init_complete', result.time_delta_ms / 1000, null);
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
onAuthResponseChange: function(response) {
|
||||
FBUnity.sendMessage('OnFacebookAuthResponseChange', response ? JSON.stringify(response) : '');
|
||||
},
|
||||
|
||||
apiCallback: function(query, response) {
|
||||
response = {'query': query, 'response': response};
|
||||
FBUnity.sendMessage('OnFacebookAPIResponse', JSON.stringify(response));
|
||||
},
|
||||
|
||||
api: function(query) {
|
||||
FB.api(query, FBUnity.apiCallback.bind(null, query));
|
||||
},
|
||||
|
||||
activateApp: function() {
|
||||
FB.AppEvents.activateApp();
|
||||
},
|
||||
|
||||
uiCallback: function(uid, callbackMethodName, response) {
|
||||
response = {'callback_id': uid, 'response': response};
|
||||
FBUnity.sendMessage(callbackMethodName, JSON.stringify(response));
|
||||
},
|
||||
|
||||
logout: function() {
|
||||
FB.logout();
|
||||
},
|
||||
|
||||
logAppEvent: function(eventName, valueToSum, parameters) {
|
||||
FB.AppEvents.logEvent(
|
||||
eventName,
|
||||
valueToSum,
|
||||
JSON.parse(parameters)
|
||||
);
|
||||
},
|
||||
|
||||
logPurchase: function(purchaseAmount, currency, parameters) {
|
||||
FB.AppEvents.logPurchase(
|
||||
purchaseAmount,
|
||||
currency,
|
||||
JSON.parse(parameters)
|
||||
);
|
||||
},
|
||||
|
||||
ui: function(x, uid, callbackMethodName) {
|
||||
x = JSON.parse(x);
|
||||
FB.ui(x, FBUnity.uiCallback.bind(null, uid, callbackMethodName));
|
||||
},
|
||||
|
||||
|
||||
hideUnity: function(direction) {
|
||||
direction = direction || 'hide';
|
||||
//TODO support this for webgl
|
||||
var unityDiv = jQuery(u.getUnity());
|
||||
|
||||
if (direction == 'hide') {
|
||||
FBUnity.sendMessage('OnFacebookFocus', 'hide');
|
||||
} else /*show*/ {
|
||||
FBUnity.sendMessage('OnFacebookFocus', 'show');
|
||||
|
||||
if (FBUnity.showScreenshotBackground.savedBackground) {
|
||||
/*
|
||||
if(fbShowScreenshotBackground.savedBackground == 'sentinel') {
|
||||
jQuery('body').css('background', null);
|
||||
} else {
|
||||
jQuery('body').css('background', fbShowScreenshotBackground.savedBackground);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
hideUnity.savedCSS = FBUnity.showScreenshotBackground.savedBackground = null;
|
||||
}
|
||||
},
|
||||
|
||||
showScreenshotBackground: function(pngbytes) /*and hide unity*/ {
|
||||
// window.screenxX and window.screenY = browser position
|
||||
// window.screen.height and window.screen.width = screen size
|
||||
// findPos, above, locates the iframe within the browser
|
||||
/*
|
||||
if (!fbShowScreenshotBackground.savedBackground)
|
||||
fbShowScreenshotBackground.savedBackground = jQuery('body').css('background') || 'sentinel';
|
||||
|
||||
jQuery('body').css('background-image', 'url(data:image/png;base64,'+pngbytes+')');
|
||||
jQuery('body').css(
|
||||
'background-position',
|
||||
-(screenPosition.iframeX)+'px '+
|
||||
-(screenPosition.iframeY)+'px'
|
||||
);
|
||||
jQuery('body').css('background-size', '100%');
|
||||
jquery('body').css('background-repeat', 'no-repeat');
|
||||
// TODO: Zoom detection
|
||||
*/
|
||||
},
|
||||
|
||||
onHideUnity: function(info) {
|
||||
if (info.state == 'opened') {
|
||||
FBUnity.sendMessage('OnFacebookFocus', 'hide');
|
||||
} else {
|
||||
FBUnity.sendMessage('OnFacebookFocus', 'show');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
init: function(connectFacebookUrl, locale, debug, initParams, status) {
|
||||
var connectFacebookUrlString = Pointer_stringify(connectFacebookUrl);
|
||||
var localeString = Pointer_stringify(locale);
|
||||
var initParamsString = Pointer_stringify(initParams);
|
||||
|
||||
FBUnity.init(connectFacebookUrlString, localeString, debug, initParamsString, status);
|
||||
},
|
||||
|
||||
initScreenPosition: function() {
|
||||
FBUnity.initScreenPosition();
|
||||
},
|
||||
|
||||
login: function(scope, callback_id) {
|
||||
var scopeString = Pointer_stringify(scope);
|
||||
var scopeArray = JSON.parse(scopeString);
|
||||
|
||||
var callback_idString = Pointer_stringify(callback_id);
|
||||
|
||||
FBUnity.login(scopeArray, callback_idString);
|
||||
},
|
||||
|
||||
activateApp: function() {
|
||||
FBUnity.activateApp();
|
||||
},
|
||||
|
||||
logout: function() {
|
||||
FBUnity.logout();
|
||||
},
|
||||
|
||||
logAppEvent: function(eventName, valueToSum, parameters) {
|
||||
var eventNameString = Pointer_stringify(eventName);
|
||||
var parametersString = Pointer_stringify(parameters);
|
||||
|
||||
FBUnity.logAppEvent(eventNameString, valueToSum, parametersString);
|
||||
},
|
||||
|
||||
logAppEventWithoutValue: function(eventName, parameters) {
|
||||
var eventNameString = Pointer_stringify(eventName);
|
||||
var parametersString = Pointer_stringify(parameters);
|
||||
|
||||
FBUnity.logAppEvent(eventNameString, null, parametersString);
|
||||
},
|
||||
|
||||
logPurchase: function(purchaseAmount, currency, parameters) {
|
||||
var currencyString = Pointer_stringify(currency);
|
||||
var parametersString = Pointer_stringify(parameters);
|
||||
|
||||
FBUnity.logPurchase(purchaseAmount, currencyString, parametersString);
|
||||
},
|
||||
|
||||
ui: function(x, uid, callbackMethodName) {
|
||||
var xString = Pointer_stringify(x);
|
||||
var uidString = Pointer_stringify(uid);
|
||||
var callbackMethodNameString = Pointer_stringify(callbackMethodName);
|
||||
|
||||
FBUnity.ui(xString, uidString, callbackMethodNameString);
|
||||
}
|
||||
};
|
||||
|
||||
autoAddDeps(LibraryManager.library, '$FBUnity');
|
||||
mergeInto(LibraryManager.library, FBUnityLib);
|
|
@ -0,0 +1,36 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 082cd93ddb11e4437b52ea3d121816d8
|
||||
timeCreated: 1561663365
|
||||
licenseType: Pro
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Facebook: WebGL
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
WebGL: WebGL
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue