SetUsingTimeSlider.cs - MitchOSully/Visualising-the-DFN-Dataset GitHub Wiki

Summary

This script should be attached to the time slider. It tells ScreenMaster.cs when the time slider is being used and when it's not.

List of Functions

Public Global Variables

void OnPointeDown(PointerEventData pointerEventData)
void OnPointerUp(PointerEventData pointerEventData)

Public Global Variables

CameraController cameraScript

Reference to the camera script so we can call setUsingTimeSlider().

void OnPointerDown(PointerEventData pointerEventData)

Sets usingTimeSlider in ScreenMaster.cs to true.

Calls

Called When

The mouse click button goes down over the time slider.

void OnPointerUp(PointerEventData pointerEventData)

Sets usingTimeSlider in ScreenMaster.cs to false.

Calls

Called When

The mouse click button is released from the time slider.