blob: b08c3d57ffbb1c456b28e08f0ef62e092db8b95d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}
}
|