public override void Clear() { ObjectsPool.GetInstance().RestorePrefabToPool(_prefabName, _bullet); _bullet = null; _trans = null; _moveToIntFunc = null; base.Clear(); }
public override void MoveTo(float endX, float endY, int duration, InterpolationMode intMode) { _moveFromPos = _curPos; _moveToPos = new Vector2(endX, endY); _moveStraightTime = 0; _moveStraightDuration = duration; _moveToIntFunc = MathUtil.GetInterpolationVec2Func(intMode); _isMovingTowards = false; _isMovingTo = true; }