public void ShotSelector(shotType type, ShotParameter param, Vector3 position, Vector3 forward, Vector3 upVec) { shotTransform.position = position; shotTransform.rotation = Quaternion.LookRotation(forward, upVec); switch (type) { case shotType.OneShot: manager.Emit_OneShot(param.number, shotTransform, param.speed, param.size); break; case shotType.multiWay: manager.Emit_MultiWay(param.number, shotTransform, param.speed, param.speedRate, param.size, param.sizeRate, param.figureSize, param.lifeTime, param.rows, param.cols); break; case shotType.cycle: manager.Emit_CycleShot(param.number, shotTransform, param.speed, param.speedRate, param.size, param.sizeRate, param.lifeTime, param.rows, param.cols); break; case shotType.squareShot: manager.Emit_SquareShot(param.number, shotTransform, param.speed, param.size, param.lifeTime, param.rows); break; case shotType.triangleShot: manager.Emit_TriangleShot(param.number, shotTransform, param.speed, param.speedRate, param.size, param.figureSize, param.lifeTime, param.rows); break; case shotType.ringShot: manager.Emit_RingShot(param.number, shotTransform, param.speed, param.speedRate, param.size, param.sizeRate, param.figureSize, param.lifeTime, param.rows, param.cols); break; case shotType.multiSpeed: manager.Emit_MultiSpeed(param.number, shotTransform, param.speed, param.speedRate, param.size, param.sizeRate, param.lifeTime, param.rows); break; case shotType.triangleSpread: manager.Emit_TriangleSpread(param.number, shotTransform, param.speed, param.speedRate, param.size, param.figureSize, param.lifeTime, param.rows, param.cols); break; } }
//2016/8/18-------------------------------------------------------------------- public void ShotSelector(shotType type, ShotParameter param, Transform tr) { switch (type) { case shotType.OneShot: manager.Emit_OneShot(param.number, tr, param.speed, param.size); break; case shotType.multiWay: manager.Emit_MultiWay(param.number, tr, param.speed, param.speedRate, param.size, param.sizeRate, param.figureSize, param.lifeTime, param.rows, param.cols); break; case shotType.cycle: manager.Emit_CycleShot(param.number, tr, param.speed, param.speedRate, param.size, param.sizeRate, param.lifeTime, param.rows, param.cols); break; case shotType.squareShot: manager.Emit_SquareShot(param.number, tr, param.speed, param.size, param.lifeTime, param.rows); break; case shotType.triangleShot: manager.Emit_TriangleShot(param.number, tr, param.speed, param.speedRate, param.size, param.figureSize, param.lifeTime, param.rows); break; case shotType.ringShot: manager.Emit_RingShot(param.number, tr, param.speed, param.speedRate, param.size, param.sizeRate, param.figureSize, param.lifeTime, param.rows, param.cols); break; case shotType.multiSpeed: manager.Emit_MultiSpeed(param.number, tr, param.speed, param.speedRate, param.size, param.sizeRate, param.lifeTime, param.rows); break; case shotType.triangleSpread: manager.Emit_TriangleSpread(param.number, tr, param.speed, param.speedRate, param.size, param.figureSize, param.lifeTime, param.rows, param.cols); break; } }