// Use this for initialization void Start() { stairs = transform.parent.GetComponent <StairManagement> (); }