Author Topic: Tutorial feedback  (Read 1304 times)

sl4ppy

  • Guest
Tutorial feedback
« on: September 25, 2012, 05:16:20 PM »
Just some quick feedback on the tutorials..

Ternary operators are already a bit cumbersome to read but double ternary operators on a single line in the tutorial code is probably a bit much, especially when most people following tutorial code are going to be green programmers. :)

in UIButtonColor.cs:
  1. if (enabled) TweenColor.Begin(tweenTarget, duration, isPressed ? pressed : (UICamera.IsHighlighted(gameObject) ? hover : mColor));

Just my $.02.

edit, just realized it's three if's on the same line.. ROFL.  1 use of "if" followed by 2 embedded ternary operators in the method call Begin().
« Last Edit: September 25, 2012, 05:31:47 PM by sl4ppy »