// Use this for initialization
    void Start()
    {
        trolley = GetComponentInChildren <Animation>();

        door1 = GameObject.Find("LeftGate").GetComponent <DoorAnimator>();
        door2 = GameObject.Find("RightGate").GetComponent <DoorAnimator>();

        animate_trolley1  = false;
        animate_trolley2  = false;
        trolley_animating = false;
        dofadeIn          = false;
        dofadeOut         = false;

        trolley_pause = tp;
        trolley_delay = td;

        fade_local = fade_time;
    }
 // Use this for initialization
 void Start()
 {
     Player = GameObject.Find("Robot");
     PlayerSpriteRenderer = Player.GetComponent <SpriteRenderer>();
     DoorAnimator         = GetComponent <DoorAnimator>();
 }