using Fantasy; using Fantasy.Async; namespace Hotfix; public static class AuthenticationHelper { public static async FTask RegisterAccount(Scene scene,string username, string password,string source) { return await scene.GetComponent().Register(username,password,source); } public static async FTask<(uint error,long acountId)> Login(Scene scene,string username, string password,string source) { return await scene.GetComponent().Login(username,password,source); } public static void RemoveCacheAccount(Scene scene, long userCode,bool isDispose = true) { scene.GetComponent().RemoveRegisterCacheAccount(userCode,isDispose); } public static void RemoveCacheAccountInfo(Scene scene, string key,bool isDispose = true) { scene.GetComponent().RemoveCacheAccountInfo(key,isDispose); } }