void Start() { render = GetComponent <Renderer>(); rigid = GetComponent <Rigidbody>(); shootScript = FindObjectOfType <Shooter>(); scoreScript = FindObjectOfType <GunAndScore>(); cameraShake = FindObjectOfType <CameraShake>(); bulletHealthS = shootScript.bulDamageS + (transform.localScale.x - shootScript.singleBNSize) * shootScript.bulDamageMultiplier * shootScript.bulDamageS; bulletHealthM = shootScript.bulDamageM; }
private void Start() { scoreScript = FindObjectOfType <GunAndScore>(); }