示例#1
0
 void Start()
 {
     resourceLoader = GameObject.FindObjectOfType <ResourceLoader>();
     scorer         = GameObject.FindObjectOfType <Goal>();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     resourceLoader = GameObject.FindObjectOfType <ResourceLoader>();
     sauceBottle    = this.gameObject;
 }