public void random_idle() { switch (Random.Range(0, 4)) { case 0: current_state = animation_type.idle1; break; case 1: current_state = animation_type.idle2; break; case 2: current_state = animation_type.idle3; break; case 3: current_state = animation_type.idle4; break; default: current_state = animation_type.idle2; break; } }
// Use this for initialization void Start() { current_state = animation_type.idle2; this.transform.localRotation = top_rotation.localRotation; playSound = true; }