void Start() { controllerStartPos = transform.position; controllerStartRot = transform.rotation; chainStartPos = chain.transform.position; grabbable = GetComponent <OVRGrabbable>(); audioSource = GetComponent <GenericAudioSource>(); maxDiff = maxPull / thresholdFactor; actualTriggerPoint = triggerPoint / thresholdFactor; }
void Start() { controllerStartPos = transform.position; controllerStartRot = transform.rotation; tittyStartPos = tittyBone.transform.position; grabbable = GetComponent <OVRGrabbable>(); gameManager = FindObjectOfType <GameManager>(); nipAudio = GetComponent <GenericAudioSource>(); var emission = tittyMilk.emission; emission.rateOverTime = 0.0f; maxDiff = maxThreshold / thresholdFactor; minDiff = minThreshold / thresholdFactor; otherNips = new List <NipController>(FindObjectsOfType <NipController>()).Where(nc => nc != this).ToList(); }