private void Start() { // Assign components to variables c = gameObject.GetComponent <CircularMenuSelection>(); p = gameObject.GetComponent <PhotoCaptureUtility>(); // Bind photo capture to click event c.OnButtonClicked += CaptureFrameToPhoto; }
private void Awake() { samplingHolo_GO = Resources.Load("Holo Placement/Sampling Hologram") as GameObject; sitescreeningHolo_GO = Resources.Load("Holo Placement/Sitescreening Hologram") as GameObject; photoCaptureUtility = gameObject.GetComponent <PhotoCaptureUtility>(); }