Example #1
0
 private void Awake()
 {
     lift       = GameObject.FindGameObjectWithTag("ExitLift");
     liftScript = lift.GetComponent <scr_ExitLift>();
 }
Example #2
0
    private void updateExitLift()
    {
        scr_ExitLift lift = GameObject.FindGameObjectWithTag("ExitLift").GetComponent <scr_ExitLift>();

        lift.targetHeight = lift.targetHeight + lift.maxHeight / 4 * (active ? 1 : -1);
    }