Question by
ziponator556 · Mar 23, 2020 at 06:04 PM ·
ifc# tutorial
Help me ! Unity Mana !,HELP ME MANA!
Blockquote
private void Update() { if (Input.GetKeyDown(KeyCode.Alpha1)) { Spells(); } } public void Spells() { if (mana >= 1) { Manaa(); powerup.Play(); jumpForce = 23f; } else { jumpForce = 14f; } }
////// error CS0019: Operator '>=' cannot be applied to operands of type 'Slider' and 'int' ////// if player use "1" mana -1 and jumpforce 21, if mana >= 1 player can use itBlockquote
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612225557im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Button bool doesn´t work correctly weird 1 Answer
How to combine up to 3 and perform an action 2 Answers
Vector3.distance not working with UNET 0 Answers
Can anyone tell if there is a common code for adding animation to my character? 1 Answer
Saving data in a txt file from Input Field button? 0 Answers