private void GetComponentReferences() { pickupCollider = GetComponent <SphereCollider>(); pickupSpin = GetComponent <Spin>(); pickupGlow = transform.Find("PickupGlow").gameObject; }
private void GetComponentReferences() { //rigid = GetComponent<Rigidbody>(); //boxCollider = GetComponent<BoxCollider>(); lineRenderer = GetComponent <LineRenderer>(); sphereCollider = GetComponent <SphereCollider>(); pickupSpin = GetComponent <Spin>(); pickupGlow = transform.Find("PickupGlow").gameObject; }