示例#1
0
    /// <summary>
    /// Creates a new instance.
    /// </summary>
    /// <param name="hub">The hub.</param>
    /// <param name="availablePanDirections">The directions available for panning.</param>
    /// <param name="profile">The profile.</param>
	public EyeXPannable(EyeXPanningHub hub, EyeXPanDirection availablePanDirections, EyeXPanningProfile profile)
    {
        _hub = hub;

        AvailablePanDirections = availablePanDirections;
        Profile = profile;        
        Velocity = Vector2.zero;
    }
示例#2
0
    /// <summary>
    /// Creates a new instance.
    /// </summary>
    /// <param name="hub">The hub.</param>
    /// <param name="availablePanDirections">The directions available for panning.</param>
    /// <param name="profile">The profile.</param>
    public EyeXPannable(EyeXPanningHub hub, EyeXPanDirection availablePanDirections, EyeXPanningProfile profile)
    {
        _hub = hub;

        AvailablePanDirections = availablePanDirections;
        Profile  = profile;
        Velocity = Vector2.zero;
    }