public void AddMultiTouchTarget(FMultiTouchableInterface touchable)
 {
     if (!_multiTouchables.Contains(touchable))
     {
         _multiTouchables.Add(touchable);
     }
 }
Exemple #2
0
    public FNodeEnablerForMultiTouch(FNode node)
    {
        multiTouchable = node as FMultiTouchableInterface;

        if (multiTouchable == null)
        {
            throw new FutileException("Trying to enable multi touch on a node that doesn't implement FMultiTouchableInterface");
        }
    }
Exemple #3
0
 public void RemoveMultiTouchTarget(FMultiTouchableInterface touchable)
 {
     if (_isUpdating)
     {
         if (!_multiTouchablesToRemove.Contains(touchable))
         {
             int index = _multiTouchablesToAdd.IndexOf(touchable);
             if (index != -1)
             {
                 _multiTouchablesToAdd.RemoveAt(index);
             }
             _multiTouchablesToRemove.Add(touchable);
         }
     }
     else
     {
         _multiTouchables.Remove(touchable);
     }
 }
Exemple #4
0
 public void RemoveMultiTouchTarget(FMultiTouchableInterface touchable)
 {
     if(_isUpdating)
     {
         if(!_multiTouchablesToRemove.Contains(touchable))
         {
             int index = _multiTouchablesToAdd.IndexOf(touchable);
             if(index != -1) _multiTouchablesToAdd.RemoveAt(index);
             _multiTouchablesToRemove.Add(touchable);
         }
     }
     else
     {
         _multiTouchables.Remove(touchable);
     }
 }
 public void RemoveMultiTouchTarget(FMultiTouchableInterface touchable)
 {
     _multiTouchables.Remove(touchable);
 }
	public FNodeEnablerForMultiTouch(FNode node)
	{
		multiTouchable = node as FMultiTouchableInterface;
		
		if(multiTouchable == null)
		{
			throw new FutileException("Trying to enable multi touch on a node that doesn't implement FMultiTouchableInterface");	
		}
	}
	public void RemoveMultiTouchTarget(FMultiTouchableInterface touchable)
	{
		_multiTouchables.Remove(touchable);
	}
	public void AddMultiTouchTarget(FMultiTouchableInterface touchable)
	{
		if(!_multiTouchables.Contains(touchable))
		{
			_multiTouchables.Add(touchable);
		}
	}