An optical nanoantenna consisting of a Au-dielectric core-shell nanocube dimer with switchable directionality was designed and described. Our theoretical model and numerical simulation showed that switching between forward and backward directions can be achieved with balanced gain and loss, using a single element by changing the coefficient κ in the core, which can be defined by the relative phase of the polarizability. The optical response indicated a remarkable dependence on the coefficient κ in the core as well as frequency. The location of the electric field enhancement was specified by the different coefficient κ and, furthermore, the chained optical nanoantenna and coupled electric dipole emitted to the optical nanoantenna played significant roles in unidirectional scattering. This simple method to calculate the feasibility of unidirectional and switchable scattering provides an effective strategy to explore the functionalities of nanophotonic devices.