public class BaseBlockCode : MonoBehaviour
{
public GameObject Moving;
[SerializeField] private GameObject Menu;
[SerializeField] private GameObject Block;
[SerializeField] private GameObject MenuEditor;
public void Onclicked()
{
Block = Instantiate(Moving);
Block.transform.position = Input.mousePosition;
Block.transform.SetParent(Menu.transform);
}
public void OnClickedStop()
{
Destroy(Block.gameObject);
}
public void OnDrag()
{
Block.transform.position = Input.mousePosition;
}
public void OnDragEnd()
{
Destroy(Block.gameObject);
}
public void OnPanel()
{
}
}