Prefab Error

  • I made a Game Object where are packed 3 laser (left, right, center) and when i try to move this to Prefabs Folder i have this errors.

    You are trying to replace or create a Prefab from the instance 'Right_Laser' that contains the script 'Laser', which does not derive from MonoBehaviour. This is not allowed.

    Please change the script to derive from MonoBehaviour or remove it from the GameObject.

    UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)

    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

    Same with left laser and center leser

  • Script is on all laser

    My player script