public BezierEffectView(BezierEffectInfo _effectInfo) { Id = _effectInfo.Id; bezierEffectInfo = _effectInfo; curPathNum = 0; angle = Vector3.zero; Vector3 startPos = _effectInfo.startPos; Vector3 endPos = _effectInfo.endPos; int fps = (int)(60 * BattleUtils.Distance2(startPos, endPos) / _effectInfo.speed); bezierPath = new Bezier(); bezierPath.AddPath(startPos, endPos, fps); }