// Init //---------------------------------------------------------- public apForceManager() { for (int i = 0; i < MAX_TOUCH_UNIT; i++) { _touchUnits[i] = new apPullTouch(i); } ClearAll(); }
public void SetTouchPosition(apPullTouch touch, Vector2 posW) { if (touch == null) { return; } if (!touch.IsLive) { return; } touch.SetPos(posW); }
public void ClearAll() { ClearForce(); for (int i = 0; i < MAX_TOUCH_UNIT; i++) { if (_touchUnits[i] == null) { _touchUnits[i] = new apPullTouch(i); } _touchUnits[i].SetDisable(); } _isAnyTouchUnit = false; _nTouchUnit = 0; }