Fixed few bugs
This commit is contained in:
@@ -38,7 +38,7 @@ RenderSettings:
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.4465791, g: 0.4964133, b: 0.57481784, a: 1}
|
||||
m_IndirectSpecularColor: {r: 0.44402248, g: 0.49316555, b: 0.5722324, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
@@ -5952,6 +5952,7 @@ MonoBehaviour:
|
||||
isRanked: 0
|
||||
RankedGameStarted: 0
|
||||
winnerId: -1
|
||||
startedTime: 0
|
||||
waitingScreen: {fileID: 0}
|
||||
rankedSummary: {fileID: 0}
|
||||
mapRadius: 250
|
||||
|
||||
@@ -9910,7 +9910,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &2133876931
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -55,7 +55,7 @@ public class AdsManager : MonoBehaviour
|
||||
rewardedAd.OnUserEarnedReward += OnRewardedComplete;
|
||||
rewardedAd.OnAdFailedToLoad += OnRewardedFailed;
|
||||
rewardedAd.OnAdFailedToShow += OnRewardedFailed;
|
||||
RequestBanner();
|
||||
// RequestBanner();
|
||||
LoadInterestitial();
|
||||
LoadRewarded();
|
||||
}
|
||||
|
||||
@@ -64,4 +64,18 @@ public class LoadingScreen : MonoBehaviour
|
||||
loadingProgress.value = value;
|
||||
loadingProgressTxt.text = (int)(value*100) + "%";
|
||||
}
|
||||
|
||||
public void DeleteRankedRooms(int port){
|
||||
StartCoroutine(CloseRoomClient(port));
|
||||
}
|
||||
|
||||
IEnumerator CloseRoomClient(int port){
|
||||
Debug.Log("Clearing rooms for port " + port);
|
||||
WWWForm form = new WWWForm();
|
||||
form.AddField("port", port);
|
||||
WWW req = new WWW(DBmanager.phpRoot+"clear_ranked_room.php",form);
|
||||
yield return req;
|
||||
|
||||
Debug.Log(req.text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,6 +86,7 @@ public class AutoConnect : MonoBehaviour
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
|
||||
// IEnumerator startHost()
|
||||
// {
|
||||
// while (!lrm.isConnectedToRelay)
|
||||
|
||||
@@ -247,12 +247,18 @@ public class MinigameManager : NetworkBehaviour
|
||||
public async void BackToBase(){
|
||||
// loadingScreen.SetActive(true);
|
||||
// await Task.Delay(1000);
|
||||
if(isRanked){
|
||||
// StartCoroutine(CloseRoomClient());
|
||||
LoadingScreen.instance.DeleteRankedRooms(AutoConnect.serverPort);
|
||||
// Debug.Log("Deleting rooms for port " + AutoConnect.serverPort);
|
||||
}
|
||||
await Task.Delay(500);
|
||||
LoadingScreen.instance.LoadLevel("GameScene");
|
||||
NetworkManager.singleton.StopClient();
|
||||
// SceneManager.LoadScene("GameScene");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Materials
|
||||
[Header("Materials")]
|
||||
|
||||
@@ -122,6 +122,9 @@ public class SpaceshipController : NetworkBehaviour
|
||||
if (isLocalPlayer)
|
||||
{
|
||||
SceneData.holder.boostBtn.gameObject.SetActive(newScale > 1);
|
||||
if(newScale <=1 && boosting){
|
||||
CmdSetBoosting(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -550,11 +553,14 @@ public class SpaceshipController : NetworkBehaviour
|
||||
{
|
||||
case PickupItem.PickupType.Moon:
|
||||
IncreaseTrail(trailIncrementRate);
|
||||
scaleMultiplier += 0.05f;
|
||||
moonsCollected++;
|
||||
break;
|
||||
|
||||
case PickupItem.PickupType.Star:
|
||||
IncreaseTrail(trailIncrementRate / 2f);
|
||||
scaleMultiplier += 0.025f;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user