public void AddMultiTouchTarget(FMultiTouchableInterface touchable) { if (!_multiTouchables.Contains(touchable)) { _multiTouchables.Add(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) { 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) { 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 AddMultiTouchTarget(FMultiTouchableInterface touchable) { if(!_multiTouchables.Contains(touchable)) { _multiTouchables.Add(touchable); } }