Optimizations

optimized guiScale.cs and hitDetector.cs