28 lines
593 B
C#
28 lines
593 B
C#
using Boo.Lang;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class Propertypanl : MonoBehaviour
|
|
{
|
|
public Text property_text;//显示3D场景的名字
|
|
public Button delete_btn;//删除按钮
|
|
public GameObject spawnObj;
|
|
public void Property(string name, Action action)
|
|
{
|
|
property_text.text = name;
|
|
delete_btn.onClick.AddListener(() =>
|
|
{
|
|
action?.Invoke();
|
|
});
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|