/// <summary> /// Rewrites actions from this AvatarControls with actions from given AvatarControls with lower priority value. /// </summary> /// <param name="actions"></param> public void Update(IAvatarControls actions) { if (actions == null) { return; } DesiredForwardSpeed = actions.DesiredForwardSpeed; DesiredRightSpeed = actions.DesiredRightSpeed; DesiredLeftRotation = actions.DesiredLeftRotation; Interact = actions.Interact; Use = actions.Use; PickUp = actions.PickUp; Fof = actions.Fof; }
/// <summary> /// Rewrites actions from this AvatarControls with actions from given AvatarControls with lower priority value. /// </summary> /// <param name="actions"></param> public void Update(IAvatarControls actions) { if (actions == null) return; DesiredForwardSpeed = actions.DesiredForwardSpeed; DesiredRightSpeed = actions.DesiredRightSpeed; DesiredLeftRotation = actions.DesiredLeftRotation; Interact = actions.Interact; Use = actions.Use; PickUp = actions.PickUp; Fof = actions.Fof; }
/// <summary> /// /// </summary> /// <param name="other"></param> public AvatarControls(IAvatarControls other) : this() { Update(other); }
public void SetActions(IAvatarControls actions) { m_avatarControls.Update(actions); SetAvatarActionsControllable(); }