Links
MSDN Operator Precendence <- Great resource for overall precedence as well as a nice overview of available operators. (hint, there's a lot of them! :]) If you've never used Unity or if you are still really green, read this article: Introduction to Unity: Getting Started
Previous Video: Types
Challenge
Create a tip calculator. Do this by creating a new script, calling it TipCalculator
. It should have two public fields: balance
, tipAmount
. Make these floats
.
The formula for finding the tip should be: balance
* tipAmount
Have OnDisable()
print out the result.
Challenge Solution
Resources
Download Start Challenge
Download Finished Challenge
Download Starter Demo
Download Finished Demo
The post Screencast: Beginning C# Part 4: Operators appeared first on Ray Wenderlich.