예제 #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);
 }
예제 #2
0
 public void ShowPosition(ClassMethods.Position position)
 {
     MapPiece.anchoredPosition = new Vector2(pieceSize * position.x, -pieceSize * position.y);
 }
예제 #3
0
 public void OpenMap()
 {
     ClassMethods.Position position = script.alliance.Forces[script.curTeam].getPosition();
     MapPiece.anchoredPosition = new Vector2(pieceSize * position.x, -pieceSize * position.y);
 }