You are on page 1of 4

Turret

Name Data type length scope Purpose


turretTop GameObject N/A public References the
part of the turret
which aims at the
target
Bullet GameObject N/A Public Holds the prefab
of the bullet
which is fired
bulletSpawn GameObject N/A Public Dictates the
position where
the bullet is shot
from
fireTimer Float N/A Public Dictates how long
between each
shot fired
shotReady bool True/false Private Dictates whether
or not the turret
is ready to fire
target GameObject N/A private References the
target which the
turret is to shoot
at
targetLocked bool True/false private Dicatates
whether the
target is currently
being aimed at

PlayerMovement

Name Data type length scope Purpose


movementSpeed Float 10 SerializedField Dictates how fast
the player moves
turnSpeed float 20 SerializedField Dictates how
quickly the player
can turn

bullet

Name Data type length scope Purpose


movementSpeed Float 70 Public How fast the
bullet moves
Damage Float 20 Publc How much
damage the bullet
does
target GameObject N/A Private What the bullet is
shooting at

Follow cam

name Data type length scope purpose


Target Transform N/A Serializefield Tells the camera
what to follow
defaultDistance Vector3 (0f, 2f, -10f); Serializefield Tells the camera
how far from the
target to follow
distanceDamp Float 10 Serializefield Helps smooth the
cameras
movement
rotationDamp float 10 Serializefield Helps smooth the
cameras
movement
Enemyhealth

Name Data type length scope Purpose


health float 50f public The value of
health the enemy
has

Enemy movement

name Data type length scope purpose


Target transform N/A serializefield Holds the target
for the enemy to
follow
Movementspeed Float 10 serializefield Determines how
fast the enemy
moves
rotationalDamp Float 0.5 serializefield Determines how
fast the enemy
turns
rayCastOffset float 2.5 serializefield Determines the
angle of the
raycasts for
avoiding
obstacles
Detectiondistance float 20 serializefield Sets the distance
for detecting
obstacles

EnemyRespawn
name Data type length scope purpose
Enemy Gameobject n/a public Holds the prefab
to spawn
stopSpawning Bool False public Tells the script
when to stop
spawning
spawnTime Float n/a Public Sets the amount
of time the
enemy will spawn
over
spawnDelay float n/a public Sets the time
until the next
enemy spawns

PlayerHealth

name Data type length scope purpose


health float public 100 Holds the value of
health of the
player

Shooting

name Data type length scope purpose


Laser Gameobject public n/a Holds the laser
effects object to
turn on and off
Range Float public 100 Determines how
far the laser
shoots
Damage Float public 10 Determines how
much damage
each shot does
shootpos Gameobject public n/a Holds where the
shot spawns from

You might also like