void OnEnable() { AvatarHints.AddProvider(node, this); if (node == AvatarHints.NodeFloat.LeftHandGrip || node == AvatarHints.NodeFloat.RightHandGrip) { controller = GetComponent <HandController>(); } }
private PositionRotation GetHintNode(AvatarHints.Node node) { if (AvatarHints.TryGet(node, out PositionRotation nodePosRot)) { return(new PositionRotation { position = nodePosRot.position, rotation = nodePosRot.rotation }); } return(new PositionRotation()); }
void OnDisable() { AvatarHints.RemoveProvider(node, this); }
void OnEnable() { AvatarHints.AddProvider(node, this); }