public void UpdatePosition(MapPosition position)
    {
        position.indicators = this.indicators;
        Vector3 currentPlayerPosition = position.CalculatePosition();
        Vector3 positionOnMap         = new Vector3(currentPlayerPosition.x, 0.0f, currentPlayerPosition.z);

        this.transform.localPosition = currentPlayerPosition;
        // this.playerLineRenderer.SetPositions(new Vector3[] {
        //     currentPlayerPosition,
        //     positionOnMap
        // });
    }
Example #2
0
 public void UpdateLocation(MapPosition pos)
 {
     this.transform.localPosition = pos.CalculatePosition();
 }