Example #1
0
    public (GameTile.CantMoveReason, Unit) CanWalkOnTileInDirection(Vector2Int position,
                                                                    MovementDirectionUtilities.MovementDirection direction)
    {
        var endPosition = position + MovementDirectionUtilities.VectorFromDirection(direction);

        return(CanWalk(endPosition));
    }
Example #2
0
    protected Coroutine Move(MovementDirectionUtilities.MovementDirection movementDirection, bool force = false)
    {
        if (movementDirection != MovementDirectionUtilities.MovementDirection.None)
        {
            return(Move(currentPosition + MovementDirectionUtilities.VectorFromDirection(movementDirection), force));
        }

        return(null);
    }
Example #3
0
 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);
 }
Example #5
0
    public GameTile GetTileInDirection(Vector2Int position, MovementDirectionUtilities.MovementDirection direction)
    {
        var vectorFromDirection = MovementDirectionUtilities.VectorFromDirection(direction);

        return(GameSessionManager.Instance.currentSceneObjects.currentWorld.GetTile(position + vectorFromDirection));
    }