Unity and Flutter apps Home Page
Work to create apps for generating revenue
|
Classes | |
class | CannonController |
The cannon controller allows the cannon to follow the player when in range The cannon head needs to be setup so that can rotate from a fixed point. The cannon tip is the firing point When in range the laser will show its track to the player IF the counter to firing gets towards the laser beam goes from Green to Red then White before firing and resetting the 'cooldown' time and the laser resets to green (due to the time to fire) More... | |
class | EnemyFollow |
Can be applied to any moveable object, makes the object move towards the player/target Needs to have trigger range TODO: Could extend to always move towards the player/target TODO: Could extend to make it move towards where the player is going by looking at player velocity TODO: Could make this be a dual function with 'escape' player. More... |
The unity object is attached to an enemy script. It has an influence area(usually spherical) within which the enemy object effect starts to happen. Once activated the OnTriggerEnter method will be called to start the effect When the influence area is exited the OnTriggerExit is called