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