Compare commits
No commits in common. "488706695916ce7c09d8194cb8f37a5218cad695" and "edc8aee5873e2e1effdcd30cf33ba6677a361fab" have entirely different histories.
4887066959
...
edc8aee587
18 changed files with 16 additions and 6348 deletions
|
@ -1364,7 +1364,7 @@ NavMeshAgent:
|
|||
m_Enabled: 1
|
||||
m_AgentTypeID: 0
|
||||
m_Radius: 0.32
|
||||
m_Speed: 2
|
||||
m_Speed: 1
|
||||
m_Acceleration: 8
|
||||
avoidancePriority: 50
|
||||
m_AngularSpeed: 360
|
||||
|
|
|
@ -1359,7 +1359,7 @@ NavMeshAgent:
|
|||
m_Enabled: 1
|
||||
m_AgentTypeID: 0
|
||||
m_Radius: 0.32
|
||||
m_Speed: 2
|
||||
m_Speed: 1
|
||||
m_Acceleration: 8
|
||||
avoidancePriority: 50
|
||||
m_AngularSpeed: 360
|
||||
|
|
|
@ -1360,7 +1360,7 @@ NavMeshAgent:
|
|||
m_Enabled: 1
|
||||
m_AgentTypeID: 0
|
||||
m_Radius: 0.32
|
||||
m_Speed: 2
|
||||
m_Speed: 1
|
||||
m_Acceleration: 8
|
||||
avoidancePriority: 50
|
||||
m_AngularSpeed: 360
|
||||
|
|
|
@ -1365,7 +1365,7 @@ NavMeshAgent:
|
|||
m_Enabled: 1
|
||||
m_AgentTypeID: 0
|
||||
m_Radius: 0.32
|
||||
m_Speed: 2
|
||||
m_Speed: 1
|
||||
m_Acceleration: 8
|
||||
avoidancePriority: 50
|
||||
m_AngularSpeed: 360
|
||||
|
|
|
@ -1365,7 +1365,7 @@ NavMeshAgent:
|
|||
m_Enabled: 1
|
||||
m_AgentTypeID: 0
|
||||
m_Radius: 0.32
|
||||
m_Speed: 2
|
||||
m_Speed: 1
|
||||
m_Acceleration: 8
|
||||
avoidancePriority: 50
|
||||
m_AngularSpeed: 360
|
||||
|
|
|
@ -1361,7 +1361,7 @@ NavMeshAgent:
|
|||
m_Enabled: 1
|
||||
m_AgentTypeID: 0
|
||||
m_Radius: 0.32
|
||||
m_Speed: 2
|
||||
m_Speed: 1
|
||||
m_Acceleration: 8
|
||||
avoidancePriority: 50
|
||||
m_AngularSpeed: 360
|
||||
|
|
|
@ -1365,7 +1365,7 @@ NavMeshAgent:
|
|||
m_Enabled: 1
|
||||
m_AgentTypeID: 0
|
||||
m_Radius: 0.32
|
||||
m_Speed: 2
|
||||
m_Speed: 1
|
||||
m_Acceleration: 8
|
||||
avoidancePriority: 50
|
||||
m_AngularSpeed: 360
|
||||
|
|
|
@ -1365,7 +1365,7 @@ NavMeshAgent:
|
|||
m_Enabled: 1
|
||||
m_AgentTypeID: 0
|
||||
m_Radius: 0.32
|
||||
m_Speed: 2
|
||||
m_Speed: 1
|
||||
m_Acceleration: 8
|
||||
avoidancePriority: 50
|
||||
m_AngularSpeed: 360
|
||||
|
|
|
@ -1365,7 +1365,7 @@ NavMeshAgent:
|
|||
m_Enabled: 1
|
||||
m_AgentTypeID: 0
|
||||
m_Radius: 0.32
|
||||
m_Speed: 2
|
||||
m_Speed: 1
|
||||
m_Acceleration: 8
|
||||
avoidancePriority: 50
|
||||
m_AngularSpeed: 360
|
||||
|
|
|
@ -1360,7 +1360,7 @@ NavMeshAgent:
|
|||
m_Enabled: 1
|
||||
m_AgentTypeID: 0
|
||||
m_Radius: 0.32
|
||||
m_Speed: 2
|
||||
m_Speed: 1
|
||||
m_Acceleration: 8
|
||||
avoidancePriority: 50
|
||||
m_AngularSpeed: 360
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8fe854ce20bb48b47a224673cb413ed9
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -150,9 +150,9 @@ Material:
|
|||
- _WorkflowMode: 1
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||
- _Color: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _ColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||
|
|
|
@ -3737,7 +3737,7 @@ MonoBehaviour:
|
|||
daysPlayedText: {fileID: 1149788710}
|
||||
peopleHelpedText: {fileID: 983053282}
|
||||
accuracyText: {fileID: 912717248}
|
||||
profilePicture: {fileID: 1277945301}
|
||||
profilePicture: {fileID: 0}
|
||||
--- !u!1 &387529325
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -5632,7 +5632,7 @@ MonoBehaviour:
|
|||
policeNpc: {fileID: 0}
|
||||
spawnPoints:
|
||||
- {fileID: 1126609777}
|
||||
npcBufferTime: 2
|
||||
npcBufferTime: 5
|
||||
Seats:
|
||||
- SeatObject: {fileID: 9804464}
|
||||
Available: 1
|
||||
|
@ -17311,7 +17311,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1696626647
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,7 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0dead7ea6762a43489aa58bfe36aeb32
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -151,14 +151,8 @@ public class Backend : MonoBehaviour
|
|||
});
|
||||
}
|
||||
|
||||
public async void GetProfile(string url, Image targetRenderer)
|
||||
private async void GetProfile(string url, Image targetRenderer)
|
||||
{
|
||||
if (string.IsNullOrEmpty(url))
|
||||
{
|
||||
Debug.LogError("Profile picture URL is empty");
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Texture2D texture = await GetTextureFromURL(url);
|
||||
|
|
|
@ -4,8 +4,6 @@ using Supabase.Gotrue;
|
|||
using UnityEngine;
|
||||
using TMPro;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class MenuButtons : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -61,8 +59,6 @@ public class MenuButtons : MonoBehaviour
|
|||
daysPlayedText.text = user.daysPlayed.ToString();
|
||||
peopleHelpedText.text = totalPeopleHelped.ToString();
|
||||
accuracyText.text = $"{accuracy:F2}%";
|
||||
|
||||
GetProfilePicture();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -77,19 +73,5 @@ public class MenuButtons : MonoBehaviour
|
|||
public void GetProfilePicture()
|
||||
{
|
||||
// profilePicture.sprite = Backend.instance.GetProfilePicture("https://fchobpauqasfebohuuam.supabase.co/storage/v1/object/public/Avatar//1739708594780-6156448458035283230_120.jpg");
|
||||
|
||||
if(Backend.instance.User != null && !string.IsNullOrEmpty(Backend.instance.User.profilePictureUrl))
|
||||
Backend.instance.GetProfile(Backend.instance.User.profilePictureUrl, profilePicture);
|
||||
}
|
||||
|
||||
public void LoadScene(string scene)
|
||||
{
|
||||
LoadScene(scene);
|
||||
}
|
||||
|
||||
public void QuitGame()
|
||||
{
|
||||
Application.Quit();
|
||||
Debug.Log("Quitting game");
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue