Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public AvatarControls(IAvatarControls other)
     : this()
 {
     Update(other);
 }
Exemplo n.º 4
0
 public void SetActions(IAvatarControls actions)
 {
     m_avatarControls.Update(actions);
     SetAvatarActionsControllable();
 }
Exemplo n.º 5
0
 public void SetActions(IAvatarControls actions)
 {
     m_avatarControls.Update(actions);
     SetAvatarActionsControllable();
 }
Exemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public AvatarControls(IAvatarControls other)
     : this()
 {
     Update(other);
 }