Пример #1
0
        /// <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;
        }
Пример #2
0
        /// <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;
        }
Пример #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public AvatarControls(IAvatarControls other)
     : this()
 {
     Update(other);
 }
Пример #4
0
 public void SetActions(IAvatarControls actions)
 {
     m_avatarControls.Update(actions);
     SetAvatarActionsControllable();
 }
Пример #5
0
 public void SetActions(IAvatarControls actions)
 {
     m_avatarControls.Update(actions);
     SetAvatarActionsControllable();
 }
Пример #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public AvatarControls(IAvatarControls other)
     : this()
 {
     Update(other);
 }