UNITY TUTORIAL | PROJECT | SPACE SHOOTER |11. Game Controller

UNITY TUTORIAL | PROJECT | SPACE SHOOTER |11. Game Controller

2
adding “Game Controller”

 

3
adding “GameController” Script

 

6
Instantiating “Asteroid” as “hazard” | deciding the location and rotation of instantiation

 

7
using a temporary prefab to get Transform values

 

8
putting the values in a public variable as a medium

 

9
instantiating GameObject in random locations by using Random.Range()

 

11
Quaternion.identity, no rotating

 

ezgif.com-video-to-gif
Instantiating “hazard” 1
ezgif.com-video-to-gif-2
Instantiating “hazard” 2