There is already a virtual axis named Horizontal registered. unity

Code Example - There is already a virtual axis named Horizontal registered. unity

                
                        //have a simple solution for this hope this will help..
//Double click on error this will open the script just replace this line
Debug.LogError("There is already a virtual axis named " + axis.name + " registered.");
//with
UnRegisterVirtualAxis(axis.name);
RegisterVirtualAxis (axis);