void SVRAInteractionStart(SVRA_GrabPoint grabPoint) { if (grabPoint.HoldingSomething()) { projectileFiring = true; controller = grabPoint.controller; } }
void Start() { grabConnection = gameObject.AddComponent <SVRA_GrabConnection>(); controller = GetComponent <SVRA_ControllerManager>(); /* Setup sphere collider for controller */ GameObject collisionSphere = InstantiateTouchSphere(); collisionDetection = collisionSphere.AddComponent <SVRA_CollisionDetection>(); collisionDetection.transform.localScale = Vector3.one * touchRadius; }
void StopFiring() { projectileFiring = false; controller = null; cooldown = 0f; }
void SVRAGrabStop() { controller = null; // this.grabPoint = null; }
void SVRAGrabStart(SVRA_GrabPoint grabPoint) { controller = grabPoint.controller; // this.grabPoint = grabPoint; }