public (GameTile.CantMoveReason, Unit) CanWalkOnTileInDirection(Vector2Int position, MovementDirectionUtilities.MovementDirection direction) { var endPosition = position + MovementDirectionUtilities.VectorFromDirection(direction); return(CanWalk(endPosition)); }
protected Coroutine Move(MovementDirectionUtilities.MovementDirection movementDirection, bool force = false) { if (movementDirection != MovementDirectionUtilities.MovementDirection.None) { return(Move(currentPosition + MovementDirectionUtilities.VectorFromDirection(movementDirection), force)); } return(null); }
public void AddDanceMoveSymbol(MovementDirectionUtilities.MovementDirection movementDirection) { GameUI.Instance.danceMoveUI.AddSymbol(movementDirection, acceptor.danceMoveSet.Count); acceptor.danceMoveSet.Add(movementDirection); if (acceptor.danceMoveSet.Count == SaveSystem.currentGameSave.globalVariables.maxDanceMoveSymbols) { Player.Instance.EndDanceMove(false); } }
public void AddSymbol(MovementDirectionUtilities.MovementDirection movementDirection, int index) { mainSymbolHolder.AddSymbol(arrows[movementDirection], index, movementDirection == MovementDirectionUtilities.MovementDirection.None); }
public GameTile GetTileInDirection(Vector2Int position, MovementDirectionUtilities.MovementDirection direction) { var vectorFromDirection = MovementDirectionUtilities.VectorFromDirection(direction); return(GameSessionManager.Instance.currentSceneObjects.currentWorld.GetTile(position + vectorFromDirection)); }