public Vector3 GetPredictedEndPositionAtEndOfJump(float currentTime) { Vector3 predictedEndPosition; MovingPlane movingPlane = end.GetComponent <MovingPlane>(); if (movingPlane != null) { predictedEndPosition = movingPlane.GetPosition(currentTime + timeToTraverseLink); } else { predictedEndPosition = end.transform.position; } return(predictedEndPosition); }
private void updateMovingPlane(MovingPlane m) { movingPlane = m; }