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