Пример #1
0
 private void Start()
 {
     inputs           = GetComponent <WizardInputs>();
     wallRunParticle  = transform.Find("ParticleToTarget").gameObject;
     particleToTarget = wallRunParticle.GetComponent <ParticleToTarget>();
     rb = GetComponent <Rigidbody>();
 }
Пример #2
0
    void Start()
    {
        inputs       = GetComponent <WizardInputs>();
        rb           = GetComponent <Rigidbody>();
        col          = GetComponent <CapsuleCollider>();
        wallGrab     = GetComponent <WallGrab>();
        cameraObject = transform.Find("CameraHolder").gameObject;

        //All layers but layer 8 (PCCharacter)
        layerMask = 1 << 8;
        layerMask = ~layerMask;
    }