// Use this for initialization private void Awake() { controller = GetComponent <CharacterController>(); animator = GetComponent <Animator>(); meleeWeapon = gameObject.GetComponentInChildren <Gamekit3D.MeleeWeapon>(); meleeWeapon.SetOwner(gameObject); targetRotation = transform.rotation; }