diff options
Diffstat (limited to 'Client/Assembly-CSharp/CreateStoreButton.cs')
-rw-r--r-- | Client/Assembly-CSharp/CreateStoreButton.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Client/Assembly-CSharp/CreateStoreButton.cs b/Client/Assembly-CSharp/CreateStoreButton.cs new file mode 100644 index 0000000..b08c3d5 --- /dev/null +++ b/Client/Assembly-CSharp/CreateStoreButton.cs @@ -0,0 +1,16 @@ +using System; +using UnityEngine; + +public class CreateStoreButton : MonoBehaviour +{ + public Transform Target; + + public StoreMenu StorePrefab; + + public void Click() + { + StoreMenu storeMenu = UnityEngine.Object.Instantiate<StoreMenu>(this.StorePrefab, this.Target); + storeMenu.transform.localPosition = new Vector3(0f, 0f, -100f); + storeMenu.transform.localScale = Vector3.zero; + } +} |