I will try to compare the two weapons of the two different scripts.
public static bool CompareWeapon(WeaponControl wp1, WeaponControl1 wp2)
{
bool retVal = false;
if(wp1.weaponType == wp2.weaponType1)
{
int random = Random.Range(0, 11);
if(random <= 5)
{
retVal = true;
}
}
And i get error,
Operator ==' cannot be applied to operands of type WeaponManager.WeaponType’ and `WeaponManager1.WeaponType1’
Please help me,
Thanks