public override void OnUpdate() { GameObject go = Fsm.GetOwnerDefaultTarget(gameObject); if (go == null) { return; } if (go != previousGo) { humanoid = go.GetComponent <HumanoidControl>(); previousGo = go; } if (humanoid != null) { humanoid.Rotate(angle.Value); } }