Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     countD += 1;
     aObject = GameObject.Find("Obj-A");
     aScript = aObject.GetComponent <ObjAScript>();
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     countB += 1;
     aScript = gameObject.AddComponent <ObjAScript>();
 }