Commit 08e3cfbf authored by Yousef Sameh's avatar Yousef Sameh

Merge remote-tracking branch 'origin/Supabase' into Supabase

parents b74ae0c6 90197342
fileFormatVersion: 2
guid: 64baee4a9f4e1074b8e6215cd32acb5c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class CreateAcountUI : MonoBehaviour
{
//public static CreateAcountUI Instance;
[SerializeField] private TMP_InputField displayNameInputField;
[SerializeField] private TMP_InputField emailInputField;
[SerializeField] private TMP_InputField passwordInputField;
[SerializeField] private Button createAcountButton;
[SerializeField] private Button loginPanelButton;
[SerializeField] private TextMeshProUGUI messageText;
//private void Awake()
//{
// if (Instance == null)
// {
// Instance = this;
// }
// else
// {
// Debug.LogError("there are two Create Acount menu");
// }
//}
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
createAcountButton.onClick.AddListener(CreateAcount);
}
// Update is called once per frame
void Update()
{
}
private async void CreateAcount()
{
string displayName = displayNameInputField.text;
string email = emailInputField.text;
string password = passwordInputField.text;
var SignUp = await SupabaseAuthentication.Instance.SignUp(email, password);
SignUp.Switch(
(_) => { },
(string error) => { messageText.text = error; }
);
}
public void Show()
{
gameObject.SetActive(true);
}
public void hide()
{
gameObject.SetActive(false);
}
}
fileFormatVersion: 2
guid: 2c2b51eebf07c684cbe0a17a3790e775
\ No newline at end of file
using UnityEngine;
public class HomeUI : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void show()
{
gameObject.SetActive(true);
}
public void hide()
{
gameObject.SetActive(false);
}
}
fileFormatVersion: 2
guid: 6abd7c2813215344aacce964e4964aac
\ No newline at end of file
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class LoginUI : MonoBehaviour
{
//public static LoginUI Instance;
[SerializeField] private TMP_InputField emailInputField;
[SerializeField] private TMP_InputField passwordInputField;
[SerializeField] private Button loginButton;
[SerializeField] private Button createAcountPanelButton;
[SerializeField] private TextMeshProUGUI messageText;
//private void Awake()
//{
// if (Instance == null)
// {
// Instance = this;
// }
// else
// {
// Debug.LogError("there are two login menu");
// }
//}
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
loginButton.onClick.AddListener(Login);
//createAcountPanelButton.onClick.AddListener(() =>
//{
// CreateAcountUI.Instance.Show();
// hide();
//});
}
// Update is called once per frame
void Update()
{
}
private async void Login()
{
string email = emailInputField.text;
string password = passwordInputField.text;
var login = await SupabaseAuthentication.Instance.LogIn(email, password);
login.Switch(
(_) => { },
(string error) => { messageText.text = error; }
);
}
public void Show()
{
gameObject.SetActive(true);
}
public void hide()
{
gameObject.SetActive(false);
}
}
fileFormatVersion: 2
guid: 15584a60abf537c4fb863ba3aeb3ee6d
\ No newline at end of file
fileFormatVersion: 2
guid: acc4ff9b9beebb149be000243ccc63d6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0fadcdd3f5d3e144f84fd080754e32bb
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
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
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
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: 100, y: 100, z: 100, w: 100}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 1537655665
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &1
MonoBehaviour:
m_ObjectHideFlags: 61
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: de02f9e1d18f588468e474319d09a723, type: 3}
m_Name:
m_EditorClassIdentifier:
shaderVariantLimit: 128
overrideShaderVariantLimit: 0
customInterpolatorErrorThreshold: 32
customInterpolatorWarningThreshold: 16
customHeatmapValues: {fileID: 0}
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