referencing a script cheaply and efficiently

Hi, how do you reference a script without using GetComponent as I heard from an experienced programmer it’s very labour intensive.

Searched in unity script reference and was hoping to find something like “Script” so I could reference it publicly.

What methods are there out there for doing this?

There’s are not other ways that I know of but ideally just do GetComponent() once in Awake() and cache it.

You could avoid the GetComponent() all together and just make a public variable of that type, then drag the GameObject with that script to it in the inspector.