Skip to content
This repository was archived by the owner on May 2, 2023. It is now read-only.

Commit 94590ca

Browse files
Krayt78Eugene Alekseev
andauthored
Minigame (#1)
* Added a draft of the minigame * reformat * Cleaned the folders + refactored code + added a missing function to erc 721 * Updated code structure and data structure * Fixed errors + cleaned the scene + added animation + character rotation on touch * updated changes requested * Added refresh and fixed some details * Updated Logo * added namespace + changes according to request * Changed app name + added scrollbar to logs + fixed issue regarding to wait for transaction complete + added events * Added Number of items in the corner * Added a check for rotation + physics2d * Reformated Code + added disable button when transaction is pending * Reformat cleanup + changes requested to itembutton script Co-authored-by: Eugene Alekseev <[email protected]>
1 parent 2726007 commit 94590ca

File tree

147 files changed

+298067
-15980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+298067
-15980
lines changed

.idea/.idea.game-unity-demo/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.game-unity-demo/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.game-unity-demo/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.mirage-unity-demo/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.mirage-unity-demo/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.mirage-unity-demo/.idea/workspace.xml

Lines changed: 121 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assembly-CSharp.csproj.DotSettings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=assets_005Cmiragesdk_005Cdemo_005Cscripts/@EntryIndexedValue">True</s:Boolean>
23
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=assets_005Cmiragesdk_005Cexamples_005Cscripts/@EntryIndexedValue">True</s:Boolean>
34
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=assets_005Cmiragesdk_005Cplugins/@EntryIndexedValue">True</s:Boolean>
45
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=assets_005Cmiragesdk_005Cscripts/@EntryIndexedValue">True</s:Boolean>

Assets/ItemButton.cs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
using TMPro;
2+
using UnityEngine;
3+
using UnityEngine.UI;
4+
5+
public class ItemButton : MonoBehaviour
6+
{
7+
[SerializeField]
8+
private TMP_Text _itemBalanceText;
9+
10+
private Button _itemButton;
11+
private Image _itemImage;
12+
13+
private void Awake()
14+
{
15+
if (!_itemBalanceText)
16+
{
17+
_itemBalanceText = GetComponentInChildren<TMP_Text>();
18+
}
19+
20+
_itemImage = GetComponent<Image>();
21+
_itemButton = GetComponent<Button>();
22+
}
23+
24+
public Button GetItemButton()
25+
{
26+
return _itemButton;
27+
}
28+
29+
public void SetItemBalanceText(string text)
30+
{
31+
_itemBalanceText.text = text;
32+
}
33+
34+
public void SetItemImageSprite(Sprite sprite)
35+
{
36+
_itemImage.sprite = sprite;
37+
}
38+
}

Assets/MirageSDK/UseCases/UseCaseIndex.cs.meta renamed to Assets/ItemButton.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/MirageSDK/Animation.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)