Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions es/sdk/unity/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,26 @@ description: Documentación de inicio rápido para el SDK de Unity de Sequence.
<img src="/images/unity/unity_boilerplate_profile.png" />
</Frame>
</Step>

<Step title="Intégrelo por su cuenta">
Comience con `EmbeddedWalletAdapter` para iniciar su integración rápidamente con solo unas pocas líneas de código y estará listo para empezar.
Cuando desee personalizar su integración, consulte nuestra otra documentación como [autenticando usuarios](/sdk/unity/onboard/authentication/intro) o [cómo enviar transacciones](/sdk/unity/power/write-to-blockchain).

```csharp
EmbeddedWalletAdapter adapter = EmbeddedWalletAdapter.GetInstance();

// Recover your wallet from storage
bool recovered = await adapter.TryRecoverWalletFromStorage();

// Otherwise, create a new session via Google Sign-In
bool successful = await adapter.GoogleLogin();

// Next, let's send a transaction
string recipientAddress = "0xabc123..";
string currencyAddress = "0xabc123..";
BigInteger amount = 1000;

await adapter.SendToken(recipientAddress, amount, currencyAddress);
```
</Step>
</Steps>
22 changes: 22 additions & 0 deletions ja/sdk/unity/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,26 @@ description: Sequence Unity SDK のクイックスタートドキュメントで
<img src="/images/unity/unity_boilerplate_profile.png" />
</Frame>
</Step>

<Step title="自分で統合する">
`EmbeddedWalletAdapter` を使えば、数行のコードで素早く統合を始めることができ、すぐに利用を開始できます。
さらにカスタマイズしたい場合は、[ユーザー認証について](/sdk/unity/onboard/authentication/intro) や [トランザクション送信方法](/sdk/unity/power/write-to-blockchain) など、他のドキュメントもご覧ください。

```csharp
EmbeddedWalletAdapter adapter = EmbeddedWalletAdapter.GetInstance();

// Recover your wallet from storage
bool recovered = await adapter.TryRecoverWalletFromStorage();

// Otherwise, create a new session via Google Sign-In
bool successful = await adapter.GoogleLogin();

// Next, let's send a transaction
string recipientAddress = "0xabc123..";
string currencyAddress = "0xabc123..";
BigInteger amount = 1000;

await adapter.SendToken(recipientAddress, amount, currencyAddress);
```
</Step>
</Steps>
5 changes: 5 additions & 0 deletions sdk/unity/bootstrap_game.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ Ensure that your codebase has access to the `Sequence.Boilerplates.asmdef` assem

Checkout the `BoilerplateController.cs` for more integration examples.

<Warning>
Boilerplates use Arbitrum Sepolia by default. To switch them to your preferred chain, set it like this:
`EmbeddedWalletAdapter.GetInstance().Chain = Chain.TestnetPolygonAmoy;`
</Warning>

## Login

Create the `SequenceLoginWindow` prefab to authenticate users as a Guest, with Email OTP, Google- or Apple Sign In.
Expand Down
21 changes: 21 additions & 0 deletions sdk/unity/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,25 @@ Checkout [how to integrate a Player Profile.](/sdk/unity/bootstrap_game#player-p
</Frame>

</Step>
<Step title="Integrate it on your own">
Start with the `EmbeddedWalletAdapter` to quickstart your integration with a few one-liners and you are ready to go.
When you want to customize your integration, checkout our other docs such as [authenticating users](/sdk/unity/onboard/authentication/intro) or [how to send transactions.](/sdk/unity/power/write-to-blockchain)

```csharp
EmbeddedWalletAdapter adapter = EmbeddedWalletAdapter.GetInstance();

// Recover your wallet from storage
bool recovered = await adapter.TryRecoverWalletFromStorage();

// Otherwise, create a new session via Google Sign-In
bool successful = await adapter.GoogleLogin();

// Next, let's send a transaction
string recipientAddress = "0xabc123..";
string currencyAddress = "0xabc123..";
BigInteger amount = 1000;

await adapter.SendToken(recipientAddress, amount, currencyAddress);
```
</Step>
</Steps>
Loading