The Warriors had to overturn a 27-point deficit in the fourth quarter, outscoring the Raptors 42-15 inside the last 12 minutes to clinch the victory.
The 23-year-old told reporters: "[O'Neal] gave a great speech at half time. Honestly, that was what was our turning point. It wasn't in the fourth quarter or the third quarter. It was at half time.
"We're shooters. It just happened to be a night where we were all missing at the same time, and then it turned out we were hitting at the same time."
The Warriors currently sit second in the Pacific Division.