easy5 pts · first answer countscsharpdebugging
Health ratio is always zero
What value does ratio hold after this C# code runs?
int health = 50; int maxHealth = 100; float ratio = health / maxHealth;
Discussion 0
Join free to post in the discussion.
Related questions
- Seeing why AI behaves oddlyGame Developer
- Script cannot be addedGame Developer
- Normalising a zero vectorGame Developer
- Finding why a mesh is invisibleGame Developer
- Error after enemy is destroyedGame Developer
- Raycast ignores the Ground layerGame Developer
- Rotation reads back as 350Game Developer
- target?.Attack() on a destroyed enemyGame Developer