Exemplo n.º 1
0
 private void Start()
 {
     inputs           = GetComponent <WizardInputs>();
     wallRunParticle  = transform.Find("ParticleToTarget").gameObject;
     particleToTarget = wallRunParticle.GetComponent <ParticleToTarget>();
     rb = GetComponent <Rigidbody>();
 }
Exemplo n.º 2
0
    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);
    }