SomeScript script = GetComponent<SomeScript>(); // alternatively, just make it a field: [SerializeField] protected SomeScript script;