private void Start() { inputs = GetComponent <WizardInputs>(); wallRunParticle = transform.Find("ParticleToTarget").gameObject; particleToTarget = wallRunParticle.GetComponent <ParticleToTarget>(); rb = GetComponent <Rigidbody>(); }
void Awake() { inputs = GetComponent <VRHandInputs>(); platformGrabParticle = transform.Find("ParticleToTarget").gameObject; particleToTarget = platformGrabParticle.GetComponent <ParticleToTarget>(); m_Joint = GetComponent <FixedJoint>(); scale = GetComponentInParent <VRPlayerScale>(); handCollider = GetComponent <Collider>(); handCollider.isTrigger = true; //Physics.IgnoreLayerCollision(12,11); }