Quantcast
Channel: Kodeco | High quality programming tutorials: iOS, Android, Swift, Kotlin, Unity, and more
Viewing all articles
Browse latest Browse all 4402

Screencast: Beginning C# Part 4: Operators

$
0
0

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.


Viewing all articles
Browse latest Browse all 4402

Trending Articles



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