Hello i want active a gameobject when i start my game, and i made a code, but that code only works for false condition, and i want put it true.
Here is my code.
public GameObject[] player;
// Update is called once per frame
void Start() {
player = GameObject.FindGameObjectsWithTag("Player");
}
void Update(){
foreach (GameObject play in player) {
play.gameObject.SetActive(false);
}
}