Fixed few bugs
This commit is contained in:
@@ -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