Quantcast
Viewing all articles
Browse latest Browse all 99

Answer by murkantilism

Is there a real question here? Are you just asking for high level advice? UnityAnswers is **not** a place to come and say "Please do all the work for me & write me a script that does X Y Z." My high level advice is: * Use Input.GetKeyDown(KeyCode.Shift) ([see documentation](http://docs.unity3d.com/Documentation/ScriptReference/Input.GetKeyDown.html)), Input.GetMouseButtonDown(0) ([see documentation](http://docs.unity3d.com/Documentation/ScriptReference/Input.GetMouseButtonDown.html)) to find out when the user does actions that cost mana. * Each time the user does actions that spend mana, subtract X amount from the variable that keeps track of mana. **Edit:** Once you try to write the code yourself, **if** you have any problems, **then** you can come here to ask a question & get help.

Viewing all articles
Browse latest Browse all 99

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>