void Start() { GameObject player = GameObject.Find("Player"); shooting = player.GetComponent <Shooting>(); movement = player.GetComponent <Movement>(); assaultReticleAnimator = assaultReticle.GetComponent <Animator>(); heavyReticleAnimator = heavyReticle.GetComponent <Animator>(); switch (currentClass) { case Class.assault: assaultClass.SetActive(true); assaultReticle.SetActive(true); cameraController.SetOffset(assaultPosition); shooting.SetClassValues(assaultDamage, assaultAttackRange, assaultFireFrequency, assaultAccuracy, assaultMuzzleFlash, assaultAnimator, assaultReticleAnimator); movement.SetClassValues(assaultAnimator); break; case Class.heavy: heavyClass.SetActive(true); heavyReticle.SetActive(true); cameraController.SetOffset(heavyPosition); shooting.SetClassValues(heavyDamage, heavyAttackRange, heavyFireFrequency, heavyAccuracy, heavyMuzzleFlash, heavyAnimator, heavyReticleAnimator); movement.SetClassValues(heavyAnimator); break; } }