// Use this for initialization void Start() { var script = this.gameObject.AddComponent <A> (); MyExtension.GetCopyOf(script, GameObject.Find("A").GetComponent <A> ()); }