March 2018
Beginner
336 pages
8h 6m
English
Our BeetleNPC script already detects collisions with the Cucumber Man, so we can simply update that script to deduct a point from the Cucumber Man's health when a collision is detected. We will do this by making a call to the ReduceHealth() method of the HealthManager script. Here are the steps:
public HealthManager _healthManager;
_healthManager = GameObject.Find ("Health_Slider")Read now
Unlock full access