Disable JS from C#

using UnityEngine;
using System.Collections;

public class blck_plc : MonoBehaviour {
	void OnCollisionEnter(Collision collision){
		collision.transform.GetComponent<plc>().enabled = false;

I´m disabling JS from C#. How can I fix this script?

It would be nice next time if you actually posted the error.

Chances are you haven’t put your C# scripts into a special folder(Unity - Manual: Special folders and script compilation order). During build it will throw an error due to the order in which things compile.

So go and read Unity - Manual: Special folders and script compilation order and put your scripts in a special folder. If something else is the issue, i would suggest that you actually post the error/exception that you’re getting.