Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     cansText    = GameObject.Find("Cans Text").GetComponent <Text>();
     coon        = GetComponent <CansModel>();
     canssAmount = coon.cansAmount;
 }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     cm = FindObjectOfType <CansModel>();
 }
Exemple #3
0
 public void Start()
 {
     can = FindObjectOfType <CansModel>();
 }
Exemple #4
0
 // Start is called before the first frame update
 void Start()
 {
     cm = GetComponent <CansModel>();
 }