ScriptComunication Flashcards
1
Q
private PlayerController playerControllerScript;
A
void Start() { playerControllerScript = GameObject.Find("Player").GetComponent < PlayerController>(); }
void SpawnObject()(ou void Update())) {
if (playerControllerScript.gameOver ==false){
transform.Translate(speedTime.deltaTime Vector3.left);
}
}