別のスクリプトにアクセス

//from ScriptB
scriptA = GetComponent("ScriptA");