Exemplo n.º 1
0
 public void SetUpMap(ClassMethods.Position basePosition)
 {
     boardSize          = Stats.boardSize;
     pieceSize          = 800.0f / boardSize;
     MapPiece.sizeDelta = new Vector2(pieceSize, pieceSize);
     transform.GetComponent <RawImage>().uvRect = new Rect(0, 0, boardSize, boardSize);
     BaseIndicator.sizeDelta        = new Vector2(pieceSize, pieceSize);
     BaseIndicator.anchoredPosition = new Vector2(pieceSize * basePosition.x, -pieceSize * basePosition.y);
     gameObject.SetActive(false);
 }
Exemplo n.º 2
0
 public void ShowPosition(ClassMethods.Position position)
 {
     MapPiece.anchoredPosition = new Vector2(pieceSize * position.x, -pieceSize * position.y);
 }
Exemplo n.º 3
0
 public void OpenMap()
 {
     ClassMethods.Position position = script.alliance.Forces[script.curTeam].getPosition();
     MapPiece.anchoredPosition = new Vector2(pieceSize * position.x, -pieceSize * position.y);
 }