Debug.Log(this.transform.localEulerAngles+" | "+weaponButtons.camEuler);
if(this.transform.localEulerAngles == weaponButtons.camEuler){
Debug.Log(“Check”);
var weaponV4 : Vector4 = profileScript.ModWeapon(selectedWeaponType, “Return”, 0);
Debug.Log(weaponV4);
weaponButtons.damageText.text = "Damage "+weaponV4.x;
weaponButtons.rangeText.text = "Range "+weaponV4.y;
weaponButtons.clipSizeText.text = "Clip Size "+weaponV4.z;
weaponButtons.reloadRateText.text = "Reload Rate "+weaponV4.w;
}
this is running in the Update on a camera
The Debug shows that my local euler is 0, 180, 0 and that the weaponButtons.camEuler is 0, 180, 0.
the if statement is not running…
the “Check” debug is not running…
How can i fix this?