Nodes
- Physical script - NODES
- SECOND SCRIPT - BUILD MANAGER
several types data and number
double
data - name, integer,
float
game object variable inside the ram - data type by unity
public variable 0 changed outside the script itself
privaye variables can only be changed by the program itself
void start begins the script
"if a turret is not empty"
turret is not empty
- if there is a turret there, its going to say it cannot build
- turret to build is going to pull up build manager. its create an instance of the turret of the prefab.
- on mouse-enter, when mouse goes inside of objects bounding box, rend.material/color - color
- on mouse-exit bounding box, it will call up material, color value, set that value to the setcolor
stores turret in build manager
build manager within a build manager
build manager - parent
build manager - child
instantiation - create a prefab and we create a copy
standard turret prefab
turret to build
Instantiation script/code - spawn objects
OnMousedown means left-button click
onmouseexit mouse leaves object's bounding box
camera controls -
scripts - add components
Private tool - TRUE
-camera
Update - listener
Comments
Post a Comment