public void Cast(GChess chess) { Vector2Int direction = chess.location - owner.location; chess.PushToward(direction, distance); chess.ElementReaction(element); }
public override void Perform() { GChess chess = GridManager.instance.GetChess(owner.location + direction); if (chess != null) { chess.PushToward(direction, 1); } }
public void Cast(GChess chess) { chess.PushToward(direction, distance); }