Commit 005108ff authored by Yousef Sameh's avatar Yousef Sameh

Scene

parent ef6f7643
......@@ -7,6 +7,8 @@ using Client = Supabase.Client;
public class SupabaseManager : MonoBehaviour
{
public static SupabaseManager Instance { private set; get; }
// Public Unity references
// public SessionListener SessionListener = null!;
......@@ -22,6 +24,11 @@ public class SupabaseManager : MonoBehaviour
private async void Start()
{
if (Instance != null)
Destroy(Instance);
Instance = this;
SupabaseOptions options = new();
// We set an option to refresh the token automatically using a background thread.
options.AutoRefreshToken = true;
......
......@@ -380,6 +380,51 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1016998376}
m_CullTransparentMesh: 1
--- !u!1 &1213667302
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1213667303}
- component: {fileID: 1213667304}
m_Layer: 0
m_Name: SessionListener
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1213667303
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1213667302}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0.21157, y: -2.7638, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1610260979}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1213667304
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1213667302}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 14bbed8449713f51db869aa6dba9c6fa, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::SessionListener
SupabaseManager: {fileID: 1610260978}
--- !u!1 &1423736942
GameObject:
m_ObjectHideFlags: 0
......@@ -618,6 +663,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 920987601}
- {fileID: 1213667303}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1747486857
......
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