void handleCapture(CaptureableObjectBehaviour capture) { if (capture.IsCapturing) { capture.TickCapture(); } else { capture.InitiailizeCapture(); } }
protected override void SetReferences() { base.SetReferences(); capture = GetComponent <CaptureableObjectBehaviour>(); capture.SubscribeToCaptureProgress(UpdateCaptureProgress); }
protected override void SetReferences() { base.SetReferences(); node = GetComponent <Node>(); capture = GetComponent <CaptureableObjectBehaviour>(); }
protected override void SetReferences() { capture = GetComponent <CaptureableObjectBehaviour>(); }
bool isCaptureable(GameObject hitObject, out CaptureableObjectBehaviour capture) { return((capture = hitObject.GetComponent <CaptureableObjectBehaviour>()) != null); }