Skip to content

Commit

Permalink
Merge pull request #30 from Signal-K/chainsafe
Browse files Browse the repository at this point in the history
πŸŽπŸ€– -> Calling custom contracts in Unity for #28, integrating with #11…
  • Loading branch information
Gizmotronn authored Mar 4, 2022
2 parents dfb04bf + b321b14 commit 70d9f48
Show file tree
Hide file tree
Showing 1,051 changed files with 301,509 additions and 49,177 deletions.
Binary file added .DS_Store
Binary file not shown.
66 changes: 66 additions & 0 deletions Assets/DB/LootLocker.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
using UnityEngine;
using LootLocker.Requests;

public class Lootlocker : MonoBehaviour
{
void Start()
{
// return;
// LootLockerSDKManager.StartGuestSession((response) =>
// {
// if (!response.success)
// {
// Debug.Log("error starting LootLocker session");

// return;
// }

// Debug.Log("successfully started LootLocker session");
// });

// LootLockerSDKManager.SetPlayerName("Chris", (response) =>
// {
// if (response.success)
// {
// Debug.Log("Successfully set player name");
// }
// else
// {
// Debug.Log("Error setting player name");
// }
// });

// LootLockerSDKManager.GetInventory((response) =>
// {
// if (response.success)
// {
// Debug.Log("Successfully retrieved player inventory: " + response.inventory.Length);

// foreach(var item in response.inventory)
// {
// Debug.Log("fill item with " + item.asset.name);

// switch (item.asset.name)
// {
// case "Item_1":
// Player.Instance.backpack.AddItem(Item.Type.rabbit, 1);
// break;
// case "Item_2":
// Player.Instance.backpack.AddItem(Item.Type.sun, 1);
// break;
// case "Item_3":
// Player.Instance.backpack.AddItem(Item.Type.spade, 1);
// break;
// }
// }

// Store.Instance.window_1.RefreshItems(0);
// Store.Instance.window_2.RefreshItems(0);
// }
// else
// {
// Debug.Log("Error getting player inventory");
// }
// });
}
}
Loading

0 comments on commit 70d9f48

Please sign in to comment.