Skip to content

Instantly share code, notes, and snippets.

///This sample script adds shaking movements to the humanoid bone.
///but could be used for other rig with a bit of modification.
///Useful when we want to a certain part of the enemy, as seen in most games with huge boss... :P
using UnityEngine;
public class shakebone : MonoBehaviour {
Animator animator;
public HumanBodyBones[] bones;