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