File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
Assets/MoralisWeb3ApiSdk/Example/Scripts Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,6 @@ public async void WalletConnectHandler(WCSessionData data)
208208 }
209209
210210 HideWalletSelection ( ) ;
211-
212- SaveScore ( 10.0f ) ;
213211 }
214212
215213 public class MyScores : MoralisObject
@@ -218,17 +216,6 @@ public class MyScores : MoralisObject
218216 public float Seconds ;
219217 }
220218
221- async void SaveScore ( float time )
222- {
223- var user = await MoralisInterface . GetUserAsync ( ) ;
224- var addr = user . authData [ "moralisEth" ] [ "id" ] . ToString ( ) ;
225- //var ens = MoralisInterface.GetClient().Web3Api.Resolve.ResolveAddress(addr);
226- var score = MoralisInterface . GetClient ( ) . Create < MyScores > ( ) ;
227- score . Name = "Bob" ; // !string.IsNullOrEmpty(ens.Name) ? ens.Name : addr;
228- score . Seconds = time ;
229- await score . SaveAsync ( ) ;
230- Debug . Log ( "SavedScore" ) ;
231- }
232219 /// <summary>
233220 /// Closeout connections and quit the application.
234221 /// </summary>
You can’t perform that action at this time.
0 commit comments