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