-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Signal-K/chainsafe
- Loading branch information
Showing
1,051 changed files
with
301,509 additions
and
49,177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
// } | ||
// }); | ||
} | ||
} |
Oops, something went wrong.