private void InitPlayerCharacter() { // Player character GameObject PlayerCharacterPrefab = (GameObject)Resources.Load("PipelinePrefabs/PlayerCharacterPrefab"); PlayerCharacterInstance = (GameObject)GameObject.Instantiate(PlayerCharacterPrefab, new Vector3(0, 0, 0), Quaternion.identity); CharController CharControllerScript = PlayerCharacterInstance.GetComponent <CharController>(); CharControllerScript.Init(charc_startSpeed, charc_startHeight, charc_incrementSpeed, charc_incrementHeight); CharMouseCam CharMouseCamScript = PlayerCharacterInstance.GetComponentInChildren <CharMouseCam>(); CharMouseCamScript.Init(charm_sensetivity, charm_smoothing, charm_frustDist, charm_frustSegments, charm_circleRadius, charm_circleSegments); // Bend controller GameObject BendControllerPrefab = (GameObject)Resources.Load("PipelinePrefabs/BendController"); BendControllerInstance = (GameObject)GameObject.Instantiate(BendControllerPrefab, new Vector3(0, 0, 0), Quaternion.identity); BendControllerScript = BendControllerInstance.GetComponent <BendControllerRadial>(); BendControllerScript.Init(CharMouseCamScript.GetCameraTransform(), bend_curvature); }