// Use this for initialization void Start() { button = this.GetComponent <Button>(); sceneFlow = FindObjectOfType <SceneFlow>(); firebase = FindObjectOfType <FirebaseAPI>(); button.onClick.AddListener(SceneChange); }