Ejemplo n.º 1
0
    public void Cast(GChess chess)
    {
        Vector2Int direction = chess.location - owner.location;

        chess.PushToward(direction, distance);
        chess.ElementReaction(element);
    }
Ejemplo n.º 2
0
    public override void Perform()
    {
        GChess chess = GridManager.instance.GetChess(owner.location + direction);

        if (chess != null)
        {
            chess.PushToward(direction, 1);
        }
    }
Ejemplo n.º 3
0
 public void Cast(GChess chess)
 {
     chess.PushToward(direction, distance);
 }