Commit 8b7dc451 authored by You're Perfect 's avatar You're Perfect

work on android store stuff

parent e9ac14ea
fileFormatVersion: 2
guid: e0f71bba0129f1f409c43b73afea8df7
guid: 23e66e28395866e40b49afd6d0a559d1
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
......@@ -45,7 +45,7 @@ TextureImporter:
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 30
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
......@@ -69,35 +69,13 @@ TextureImporter:
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 0b74e4df9d0b8824e8b38d78e880473c
spriteID: 1e7584e265d9a2b42a703c04dfa8d818
vertices: []
indices:
edges: []
......
......@@ -10,9 +10,9 @@ public class HighScoreCounter : MonoBehaviour
GetComponent<Text>().text = PlayerPrefs.GetInt("HighScore", 0).ToString();
}
private void OnClear()
public void OnClear()
{
PlayerPrefs.SetInt("HighScore", 0);
GetComponent<Text>().text = "Cleared!";
GetComponent<Text>().text = "0";
}
}
......@@ -7,6 +7,7 @@
*/
using CnControls;
using GameJolt.API;
using GameJolt.UI;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
......@@ -28,6 +29,7 @@ public class MainMenu : MonoBehaviour
public Sprite NoneIcon;
public Button Player2Button;
public Button Player2TouchControls;
public Text Player2KeyboardControls;
public SimpleJoystick Player2Stick;
public LineController Player2Line;
public RodController Player2Rod;
......@@ -36,6 +38,13 @@ public class MainMenu : MonoBehaviour
public Image SpashScreen;
public IEnumerator OnHighScoreHelper(float delay)
{
yield return new WaitForSeconds(delay);
if (Application.internetReachability != NetworkReachability.NotReachable)
GameJoltUI.Instance.ShowLeaderboards();
}
void OnEnable()
{
KeyboardControlsInfo.SetActive(true);
......@@ -56,6 +65,7 @@ public class MainMenu : MonoBehaviour
GameJolt.API.Scores.Add(ScoreManager.Player1Score, ScoreManager.Player1Score+" Points");
PlayerPrefs.SetInt("HighScore", ScoreManager.Player1Score);
PlayerPrefs.Save();
StartCoroutine(OnHighScoreHelper(1f));
}
else
{
......@@ -122,6 +132,7 @@ public class MainMenu : MonoBehaviour
Player2Rod.HumanControlled = false;
Player2TouchControls.gameObject.SetActive(false);
Player2Stick.gameObject.SetActive(false);
Player2KeyboardControls.gameObject.SetActive(false);
}
else
{
......
using GameJolt.UI;
using GameJolt.API;
using GameJolt.UI;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PlayerSignIn : MonoBehaviour
{
public void OnClick()
public Sprite DefaultIcon;
public void OnClick()
{
if(GameJoltAPI.Instance.HasSignedInUser)
{
GameJoltAPI.Instance.CurrentUser.SignOut();
GetComponent<Button>().image.sprite = DefaultIcon;
}
else
{
GameJoltUI.Instance.ShowSignIn(null, Status);
}
}
public void Status(bool success)
{
if (success)
GameJoltAPI.Instance.CurrentUser.DownloadAvatar(Downloaded);
else
GetComponent<Button>().image.sprite = DefaultIcon;
}
public void Downloaded(bool success)
{
GameJoltUI.Instance.ShowSignIn();
Button asButton = GetComponent<Button>();
if (success)
asButton.image.sprite = GameJoltAPI.Instance.CurrentUser.Avatar;
else
asButton.image.sprite = DefaultIcon;
}
}
fileFormatVersion: 2
guid: 6e82ba4808668aa4e927453f86ed9ae0
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 7
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: befc4fcad021dbd42a52dc6a1ed9d2e2
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 4477181849c528f4aa4a8d336fd46ff3
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 7
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 24fc0b67bc064604a9b40de7251ca04c
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
......@@ -33,9 +33,9 @@ GraphicsSettings:
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16002, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0}
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_CustomRenderPipeline: {fileID: 0}
m_TransparencySortMode: 0
m_TransparencySortAxis: {x: 0, y: 0, z: 1}
......
......@@ -3,25 +3,24 @@
--- !u!310 &1
UnityConnectSettings:
m_ObjectHideFlags: 0
serializedVersion: 1
m_Enabled: 1
m_TestMode: 0
m_TestEventUrl:
m_TestConfigUrl:
m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
m_ConfigUrl: https://config.uca.cloud.unity3d.com
m_TestInitMode: 0
CrashReportingSettings:
m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes
m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate
m_EventUrl: https://perf-events.cloud.unity3d.com
m_Enabled: 0
m_LogBufferSize: 10
m_CaptureEditorExceptions: 1
UnityPurchasingSettings:
m_Enabled: 0
m_TestMode: 0
UnityAnalyticsSettings:
m_Enabled: 1
m_InitializeOnStartup: 1
m_TestMode: 0
m_TestEventUrl:
m_TestConfigUrl:
UnityAdsSettings:
m_Enabled: 0
m_InitializeOnStartup: 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment