March 2019
Intermediate to advanced
708 pages
17h 9m
English
In the CollectibleObject class's constructor, we make sure that our object is going to be replicated. After that, we create a sphere collider that we tell (via a listener) to call the OnBeginOverlap function when it collides with another object. To do that, we use the OnComponentBeginOverlap function.
After this, inside our OnBeginOverlap function, we first check if we are currently on the server. We don't want things to get called multiple times, and we want the server to be the ...
Read now
Unlock full access