// Use this for initialization void Start() { movement = GetComponent <PlatformerControl_Movement> (); }
// Use this for initialization void Start() { //change this line to "player = gameObject.GetComponentInParent<PlatformerController> ();" player = gameObject.GetComponentInParent <PlatformerControl_Movement> (); }