public void StartShowPreview(Ship relatedShip) { GameManager.gameManager.SlwMoManager.StartAimSlowMo(EquipmentType.Hull); /*if (specialShipMoveParameters.ShipIsAnchored) * { * spawnedPreview = GameManager.gameManager.PoolManager.GetPreview(PreviewPoolTag.Anchor, PoolInteractionType.GetFromPool); * IconPreview iconPreview = spawnedPreview as IconPreview; * if (iconPreview != null) * { * iconPreview.ShowPreparePreview(relatedShip.transform); * } * } * else if (specialShipMoveParameters.ShipBoost) * { * * }*/ spawnedPreview = GameManager.gameManager.PoolManager.GetPreview(specialShipMoveParameters.ShipIsAnchored ? PreviewPoolTag.Anchor : PreviewPoolTag.Boost, PoolInteractionType.GetFromPool); IconPreview iconPreview = spawnedPreview as IconPreview; if (iconPreview != null) { iconPreview.ShowPreparePreview(relatedShip.transform); } }
public override void EndShowPreview() { GameManager.gameManager.SlwMoManager.StopAimSlowMo(); /*if (specialShipMoveParameters.ShipIsAnchored) * { * IconPreview anchorPreview = spawnedPreview as IconPreview; * if (anchorPreview != null) * { * anchorPreview.StartLaunchedPreview(Vector3.zero, new List<Vector3>(), specialShipMoveParameters.GetDuration); * } * } * else if (specialShipMoveParameters.ShipBoost) * { * * }*/ IconPreview iconPreview = spawnedPreview as IconPreview; if (iconPreview != null) { iconPreview.StartLaunchedPreview(Vector3.zero, new List <Vector3>(), specialShipMoveParameters.GetDuration); } }