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