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