Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     colCalc  = FindObjectOfType <collectionCalculator>();
     petCount = colCalc.counter;
     petCountTextMesh.text = "Yokai Collected: " + petCount.ToString();
     Destroy(colCalc.gameObject);
 }
 // Use this for initialization
 void Start()
 {
     counter        = 0;
     collectionCalc = FindObjectOfType <collectionCalculator>();
 }