// Use this for initialization void Start() { //sound = GetComponent<AudioSource>(); cam = Camera.main.GetComponent<FencingCameraController>(); rend = GetComponent<Renderer>(); rb = GetComponent<Rigidbody>(); anim = GetComponent <Animator>(); equipScript = GetComponentInChildren<FencingEquipment>(); //deathScript = transform.GetComponentInChildren<ConfettiScript>(); shield = GetComponent<SphereCollider>(); shield.enabled = false; input = GetComponent<FencingInputHandler>(); input.rb = rb; input.control = this; input.player = gameObject; alive = true; Armed = true; rend.material.color = color; equipScript.owner = this.gameObject; equipScript.ResetColor(color); movementAllowed = true; ResetRigidBodyConstraints(); }