public void InstantiateShip2Path(Vector3 sP, Vector3 eP) { objectOnPathEnd = false; pathEndAction = null; pathProgress = 0; startPoint = sP; endPoint = eP; startCurve = SpawnerController.instance.allScreenSpawner.GetRandomPositionInWorld(); endCurve = SpawnerController.instance.allScreenSpawner.GetRandomPositionInWorld(); }
public void InstantiateStandartPath(Vector3 sP, Vector3 eP) { objectOnPathEnd = false; pathEndAction = null; pathProgress = 0; startPoint = sP; endPoint = eP; startCurve = GetCurvePoint(sP, eP); endCurve = startCurve; }