private void Start() { _movement = GetComponent <Movement>(); _carryObject = GetComponent <CarryObject>(); _objectInteractor = GetComponent <ObjectInteractor>(); _animator = GetComponent <Animator>(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); ObjectInteractor objectInteractor = (ObjectInteractor)target; if (GUILayout.Button("Manually Run Interactor")) { objectInteractor.InteractWithObject(); } }