转自:https://blog.csdn.net/u013178480/article/details/72358551 <code class="language-html"><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head
using UnityEngine; using System.Collections; public class Try : MonoBehaviour { public class Action : ScriptableObject { public Transform Att; public Transform Def; } // Use this for initialization void Start () { Action act = new Action(); act.Att =