using UnityEditor;using UnityEngine;using CreateTerrainDLL; public class CreateTerrainMenu : EditorWindow{ [MenuItem("CreateTerrainMenuItem/CreatTerrain")] public static void OpenTerrainCreatWindow() { EditorWindow.GetWindow(typeof(CreateTerrain…
一. 参数自定义 一个含有成员的类Player using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public int id; public string playerName; public string backStory; public float health; public float damage; p…