Adding points based on cherry collection and combat hits

In this section, we will edit the appropriate scripts so that the Cucumber Man can earn points, related to cherries, based on the following criteria:

In-game event Points
Cucumber Man picks cherry + 5
Cucumber Man hits beetle with cherry + 10

Get Getting Started with Unity 2018 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.