void Start() { m_attribute = GetComponent <prefabAttribute>(); }
void Start() { m_attribute = GetComponent <prefabAttribute>(); Goldprefab = Resources.Load("Gold", typeof(GameObject)) as GameObject;//得到Resources目录下的Gold预制体 }