public void changeScene(int id) { GameObject gameFlow = GameObject.Find("GameFlow"); GameFlowManager gf = (GameFlowManager)gameFlow.GetComponent(typeof(GameFlowManager)); gf.loadScene(id); }