// Use this for initialization
 void Start()
 {
     pool = GetComponent("poolScript") as poolScript;
     main = transform.Find("/gameMain").GetComponent("gameMainScript") as gameMainScript;
 }
Пример #2
0
 // Use this for initialization
 void Awake()
 {
     instance = this;
 }