diff --git a/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.IOSResolver.dll.meta b/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.IOSResolver.dll.meta index 396b9664..9f9caf39 100644 --- a/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.IOSResolver.dll.meta +++ b/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.IOSResolver.dll.meta @@ -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 diff --git a/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.JarResolver.dll.meta b/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.JarResolver.dll.meta index 05bf9c0f..3d0492a3 100644 --- a/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.JarResolver.dll.meta +++ b/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.JarResolver.dll.meta @@ -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 diff --git a/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.PackageManagerResolver.dll.meta b/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.PackageManagerResolver.dll.meta index 7676ed78..3e140c73 100644 --- a/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.PackageManagerResolver.dll.meta +++ b/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.PackageManagerResolver.dll.meta @@ -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 diff --git a/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.VersionHandlerImpl.dll.meta b/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.VersionHandlerImpl.dll.meta index d26a581e..6ee3de14 100644 --- a/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.VersionHandlerImpl.dll.meta +++ b/popcorn/Assets/ExternalDependencyManager/Editor/1.2.169/Google.VersionHandlerImpl.dll.meta @@ -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 diff --git a/popcorn/Assets/ExternalDependencyManager/Editor/CHANGELOG.md.meta b/popcorn/Assets/ExternalDependencyManager/Editor/CHANGELOG.md.meta index 77a0dd33..9f286231 100644 --- a/popcorn/Assets/ExternalDependencyManager/Editor/CHANGELOG.md.meta +++ b/popcorn/Assets/ExternalDependencyManager/Editor/CHANGELOG.md.meta @@ -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: - userData: - assetBundleName: - assetBundleVariant: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll.meta b/popcorn/Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll.meta index 80fa4f72..6392d897 100644 --- a/popcorn/Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll.meta +++ b/popcorn/Assets/ExternalDependencyManager/Editor/Google.VersionHandler.dll.meta @@ -1,21 +1,18 @@ 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: + Any: second: enabled: 0 settings: {} @@ -31,6 +28,6 @@ PluginImporter: enabled: 0 settings: CPU: AnyCPU - userData: - assetBundleName: - assetBundleVariant: + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/ExternalDependencyManager/Editor/LICENSE.meta b/popcorn/Assets/ExternalDependencyManager/Editor/LICENSE.meta index 6207f9d2..533a3260 100644 --- a/popcorn/Assets/ExternalDependencyManager/Editor/LICENSE.meta +++ b/popcorn/Assets/ExternalDependencyManager/Editor/LICENSE.meta @@ -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: - userData: - assetBundleName: - assetBundleVariant: +guid: d494e38ef8a3342e8802f7bd4d81a1e2 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/ExternalDependencyManager/Editor/README.md.meta b/popcorn/Assets/ExternalDependencyManager/Editor/README.md.meta index 0a934fb0..eb5ab7ed 100644 --- a/popcorn/Assets/ExternalDependencyManager/Editor/README.md.meta +++ b/popcorn/Assets/ExternalDependencyManager/Editor/README.md.meta @@ -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: - userData: - assetBundleName: - assetBundleVariant: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.169_manifest.txt.meta b/popcorn/Assets/ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.169_manifest.txt.meta index aa22ac82..cb7dd4a4 100644 --- a/popcorn/Assets/ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.169_manifest.txt.meta +++ b/popcorn/Assets/ExternalDependencyManager/Editor/external-dependency-manager_version-1.2.169_manifest.txt.meta @@ -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: - userData: - assetBundleName: - assetBundleVariant: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK.meta b/popcorn/Assets/FacebookSDK.meta new file mode 100644 index 00000000..d2200942 --- /dev/null +++ b/popcorn/Assets/FacebookSDK.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 70ee7d8db6d4a4a4c8c7271d8aa15ad6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples.meta b/popcorn/Assets/FacebookSDK/Examples.meta new file mode 100644 index 00000000..cdfd01ec --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ea811254d1ed24267bf0010ca4f893ea +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/AccessTokenMenu.unity b/popcorn/Assets/FacebookSDK/Examples/AccessTokenMenu.unity new file mode 100644 index 00000000..1497596e --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/AccessTokenMenu.unity @@ -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 diff --git a/popcorn/Assets/FacebookSDK/Examples/AccessTokenMenu.unity.meta b/popcorn/Assets/FacebookSDK/Examples/AccessTokenMenu.unity.meta new file mode 100644 index 00000000..21090fd4 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/AccessTokenMenu.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 67cb5b2387b8e4ec9b2fa69ad9510e9b +timeCreated: 1447720184 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/AppEvents.unity b/popcorn/Assets/FacebookSDK/Examples/AppEvents.unity new file mode 100644 index 00000000..1b11accf --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/AppEvents.unity @@ -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 diff --git a/popcorn/Assets/FacebookSDK/Examples/AppEvents.unity.meta b/popcorn/Assets/FacebookSDK/Examples/AppEvents.unity.meta new file mode 100644 index 00000000..1f97042f --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/AppEvents.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 68ab940fa15e34433bff18301686b080 +timeCreated: 1434663633 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/AppLinks.unity b/popcorn/Assets/FacebookSDK/Examples/AppLinks.unity new file mode 100644 index 00000000..909e8517 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/AppLinks.unity @@ -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 diff --git a/popcorn/Assets/FacebookSDK/Examples/AppLinks.unity.meta b/popcorn/Assets/FacebookSDK/Examples/AppLinks.unity.meta new file mode 100644 index 00000000..327030ab --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/AppLinks.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4ac12dfde6570493291366d0ab3eb20d +timeCreated: 1434663633 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/AppRequests.unity b/popcorn/Assets/FacebookSDK/Examples/AppRequests.unity new file mode 100644 index 00000000..be864f04 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/AppRequests.unity @@ -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 diff --git a/popcorn/Assets/FacebookSDK/Examples/AppRequests.unity.meta b/popcorn/Assets/FacebookSDK/Examples/AppRequests.unity.meta new file mode 100644 index 00000000..e7f8fcf5 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/AppRequests.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c2250c9c5cf00425384401321f8dffb4 +timeCreated: 1434135388 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/DialogShare.unity b/popcorn/Assets/FacebookSDK/Examples/DialogShare.unity new file mode 100644 index 00000000..f7242035 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/DialogShare.unity @@ -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 diff --git a/popcorn/Assets/FacebookSDK/Examples/DialogShare.unity.meta b/popcorn/Assets/FacebookSDK/Examples/DialogShare.unity.meta new file mode 100644 index 00000000..1942f703 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/DialogShare.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 190c345841ecc464e9a122f04369757e +timeCreated: 1434132966 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/GraphRequest.unity b/popcorn/Assets/FacebookSDK/Examples/GraphRequest.unity new file mode 100644 index 00000000..13a30c92 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/GraphRequest.unity @@ -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 diff --git a/popcorn/Assets/FacebookSDK/Examples/GraphRequest.unity.meta b/popcorn/Assets/FacebookSDK/Examples/GraphRequest.unity.meta new file mode 100644 index 00000000..c5546169 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/GraphRequest.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 444ae7ddf432b457a97bfe42021075e3 +timeCreated: 1434488369 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/LogView.unity b/popcorn/Assets/FacebookSDK/Examples/LogView.unity new file mode 100644 index 00000000..713675ed --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/LogView.unity @@ -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 diff --git a/popcorn/Assets/FacebookSDK/Examples/LogView.unity.meta b/popcorn/Assets/FacebookSDK/Examples/LogView.unity.meta new file mode 100644 index 00000000..ac61c4ce --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/LogView.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c07ff0bf6bea74c2eb681ac0cae44265 +timeCreated: 1434143106 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/MainMenu.unity b/popcorn/Assets/FacebookSDK/Examples/MainMenu.unity new file mode 100644 index 00000000..492be095 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/MainMenu.unity @@ -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: diff --git a/popcorn/Assets/FacebookSDK/Examples/MainMenu.unity.meta b/popcorn/Assets/FacebookSDK/Examples/MainMenu.unity.meta new file mode 100644 index 00000000..083e17b0 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/MainMenu.unity.meta @@ -0,0 +1,6 @@ +fileFormatVersion: 2 +guid: 7c38a8c9adc9d5c4b869612e4033ead8 +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Pay.unity b/popcorn/Assets/FacebookSDK/Examples/Pay.unity new file mode 100644 index 00000000..72481a14 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Pay.unity @@ -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: diff --git a/popcorn/Assets/FacebookSDK/Examples/Pay.unity.meta b/popcorn/Assets/FacebookSDK/Examples/Pay.unity.meta new file mode 100644 index 00000000..5a726037 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Pay.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3ee189cdb21ea4bdb9d7022a0780c44c +timeCreated: 1441927990 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts.meta new file mode 100644 index 00000000..f5ed6521 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 81ac4cc7a765b43d2b1d3020204152a0 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/ConsoleBase.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/ConsoleBase.cs new file mode 100644 index 00000000..8a4189be --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/ConsoleBase.cs @@ -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 menuStack = new Stack(); + 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 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()); + } + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/ConsoleBase.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/ConsoleBase.cs.meta new file mode 100644 index 00000000..d499af3d --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/ConsoleBase.cs.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: e8659f5605d094c19a8b7ef9471c3603 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/LogView.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/LogView.cs new file mode 100644 index 00000000..0a579879 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/LogView.cs @@ -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 events = new List(); + + 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(); + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/LogView.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/LogView.cs.meta new file mode 100644 index 00000000..4d9123fb --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/LogView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 910cbe16250cb4363b70464c39fc701a +timeCreated: 1434143113 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/MenuBase.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/MenuBase.cs new file mode 100644 index 00000000..6ee425b6 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/MenuBase.cs @@ -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; + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/MenuBase.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/MenuBase.cs.meta new file mode 100644 index 00000000..b0940325 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/MenuBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f28f9112a7d44d3c999fbd95333abbb +timeCreated: 1465553943 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus.meta new file mode 100644 index 00000000..c5932d9d --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 62787afce42184c318d4d63b3bb40420 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AccessTokenMenu.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AccessTokenMenu.cs new file mode 100644 index 00000000..f995a21a --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AccessTokenMenu.cs @@ -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); + } + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AccessTokenMenu.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AccessTokenMenu.cs.meta new file mode 100644 index 00000000..926a4794 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AccessTokenMenu.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cc408e158eec46b28b93a44fc8819ff +timeCreated: 1447720427 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppEvents.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppEvents.cs new file mode 100644 index 00000000..4e6cda97 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppEvents.cs @@ -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() + { + { AppEventParameterName.Description, "Clicked 'Log AppEvent' button" } + }); + LogView.AddLog( + "You may see results showing up at https://www.facebook.com/analytics/" + + FB.AppId); + } + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppEvents.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppEvents.cs.meta new file mode 100644 index 00000000..dc71cd42 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppEvents.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e3c0dd81ff77c4c30834810815c69f6d +timeCreated: 1435018470 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppLinks.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppLinks.cs new file mode 100644 index 00000000..935774f2 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppLinks.cs @@ -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); + } + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppLinks.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppLinks.cs.meta new file mode 100644 index 00000000..525aa840 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppLinks.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9f0b7257fa054227be6e26bf1f6b339 +timeCreated: 1435164891 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppRequests.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppRequests.cs new file mode 100644 index 00000000..90b4b643 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppRequests.cs @@ -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 filter = new List() { "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 filter = new List() { "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().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; + } + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppRequests.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppRequests.cs.meta new file mode 100644 index 00000000..9cd81474 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/AppRequests.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b4c675f81a254b87adc8ad01006c580 +timeCreated: 1435018470 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/DialogShare.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/DialogShare.cs new file mode 100644 index 00000000..ec7069cd --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/DialogShare.cs @@ -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; + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/DialogShare.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/DialogShare.cs.meta new file mode 100644 index 00000000..bb1c7836 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/DialogShare.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e93c4155902d3496399630ee494eab6b +timeCreated: 1435018470 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/GraphRequest.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/GraphRequest.cs new file mode 100644 index 00000000..b84b8a13 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/GraphRequest.cs @@ -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); + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/GraphRequest.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/GraphRequest.cs.meta new file mode 100644 index 00000000..3cc8f3f8 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/GraphRequest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23c3cb06c2209474e9a8441e2712d5d2 +timeCreated: 1435018470 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/MainMenu.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/MainMenu.cs new file mode 100644 index 00000000..4fe607e0 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/MainMenu.cs @@ -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.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.PublicProfile }); + this.Status = "Limited login called"; + + } + if (this.Button("Limited login +friends")) + { + this.CallFBLogin(LoginTracking.LIMITED, new HashSet { 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.PublicProfile, Scope.UserBirthday }); + this.Status = "Limited login +bday called"; + } + + if (this.Button("Limited Login+agerange")) + { + this.CallFBLogin(LoginTracking.LIMITED, new HashSet { 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.PublicProfile, Scope.UserLocation }); + } + + if (this.Button("Limited Login + Hometown")) + { + this.CallFBLogin(LoginTracking.LIMITED, new HashSet { Scope.PublicProfile | Scope.UserHometown }); + } + + GUILayout.EndHorizontal(); + GUILayout.BeginHorizontal(); + + if (this.Button("Limited Login + Gender")) + { + this.CallFBLogin(LoginTracking.LIMITED, new HashSet { 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) + { + List scopes = new List(); + + 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() { "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); + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/MainMenu.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/MainMenu.cs.meta new file mode 100644 index 00000000..5915994e --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/MainMenu.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 922e3ad8d88a146b3b392cd8c84edd6a +timeCreated: 1465553943 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/Pay.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/Pay.cs new file mode 100644 index 00000000..c620e6f5 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/Pay.cs @@ -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); + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/Pay.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/Pay.cs.meta new file mode 100644 index 00000000..de5ac0a9 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/Pay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f08c9721703046ec883e57562184726 +timeCreated: 1435018470 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/TournamentsMenu.cs b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/TournamentsMenu.cs new file mode 100644 index 00000000..5f48ca54 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/TournamentsMenu.cs @@ -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; + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/TournamentsMenu.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/TournamentsMenu.cs.meta new file mode 100644 index 00000000..6b3be454 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Scripts/SubMenus/TournamentsMenu.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4ad38019c04d54713a79b19e9b246a0c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Textures.meta b/popcorn/Assets/FacebookSDK/Examples/Textures.meta new file mode 100644 index 00000000..7088934e --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Textures.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 959df250be4394f88b58738d1a9072b6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Textures/White.psd b/popcorn/Assets/FacebookSDK/Examples/Textures/White.psd new file mode 100644 index 00000000..4cc7f9c8 Binary files /dev/null and b/popcorn/Assets/FacebookSDK/Examples/Textures/White.psd differ diff --git a/popcorn/Assets/FacebookSDK/Examples/Textures/White.psd.meta b/popcorn/Assets/FacebookSDK/Examples/Textures/White.psd.meta new file mode 100644 index 00000000..8ccc9bf9 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Textures/White.psd.meta @@ -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: diff --git a/popcorn/Assets/FacebookSDK/Examples/TournamentsMenu.unity b/popcorn/Assets/FacebookSDK/Examples/TournamentsMenu.unity new file mode 100644 index 00000000..a84e33d5 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/TournamentsMenu.unity @@ -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: diff --git a/popcorn/Assets/FacebookSDK/Examples/TournamentsMenu.unity.meta b/popcorn/Assets/FacebookSDK/Examples/TournamentsMenu.unity.meta new file mode 100644 index 00000000..3b4a17e6 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/TournamentsMenu.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 6f8d688887086476cb9533793ffa1756 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Windows.meta b/popcorn/Assets/FacebookSDK/Examples/Windows.meta new file mode 100644 index 00000000..fe3f4c35 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Windows.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 44628a62208674c55ad86da3c28a70ec +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsA2UNotificationsManager.cs b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsA2UNotificationsManager.cs new file mode 100644 index 00000000..7c76fc5a --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsA2UNotificationsManager.cs @@ -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."); + } + } + + +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsA2UNotificationsManager.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsA2UNotificationsManager.cs.meta new file mode 100644 index 00000000..cc5917ef --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsA2UNotificationsManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a87b0532431cd8543ad24dba4f6553c9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsADSManager.cs b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsADSManager.cs new file mode 100644 index 00000000..262a399b --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsADSManager.cs @@ -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."); + } + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsADSManager.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsADSManager.cs.meta new file mode 100644 index 00000000..70220a32 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsADSManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 67f2f22b10b98134995830e8bee86439 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsExampleTabsManager.cs b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsExampleTabsManager.cs new file mode 100644 index 00000000..53364335 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsExampleTabsManager.cs @@ -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); + } +} diff --git a/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsExampleTabsManager.cs.meta b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsExampleTabsManager.cs.meta new file mode 100644 index 00000000..9cea7132 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsExampleTabsManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d684454c7ae4aa749bf72961f5d54d1a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsFriendsManager.cs b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsFriendsManager.cs new file mode 100644 index 00000000..9c7ff120 --- /dev/null +++ b/popcorn/Assets/FacebookSDK/Examples/Windows/FBWindowsFriendsManager.cs @@ -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