private async ETTask CreateAccount(string PhoneNum, string UserName, string Password) { DBProxyComponent db = Game.Scene.GetComponent <DBProxyComponent>(); Account account = ComponentFactory.Create <Account>(); account.PhoneNum = PhoneNum.ToNum(); account.UserName = UserName; account.Password = Password; await db.Save(account); UserDB userDb = ComponentFactory.Create <UserDB>(); userDb.PhoneNum = PhoneNum.ToNum(); userDb.AddComponent <UserBaseComponent>().UserName = UserName; userDb.AddComponent <SettingInfoComponent>(); userDb.AddComponent <WarehouseComponent>(); await db.Save(userDb); }