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);
}
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly