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