There are at least 5 ways to link scripts together in Unity using C#.
1.Create an instance of the script.
MassSpawn MSpawn = new MassSpawn();
2.Find the component.
ExampleScript someScript;
someScript = GetComponent();
someScript.DoSomething();
3.Use inheritance
public class childClass: ParentClass {}
4. Use an interface
public interface iThing{}
public class SomeClass: Monobehaviour, iThing {}
5. Using Declarative
using UnityEngine;
So when in doubt, try them out.
1.Create an instance of the script.
MassSpawn MSpawn = new MassSpawn();
2.Find the component.
ExampleScript someScript;
someScript = GetComponent();
someScript.DoSomething();
3.Use inheritance
public class childClass: ParentClass {}
4. Use an interface
public interface iThing{}
public class SomeClass: Monobehaviour, iThing {}
5. Using Declarative
using UnityEngine;
So when in doubt, try them out.