public void unleashGirlfriend(bool trueEnding) { int index = Random.Range(0, nPos); GameObject gf = Instantiate(spriteHandler.GetGirlfriend(), spawnPositions[index].position, Quaternion.identity); gf.GetComponent <Girlfriend>().setEnding(trueEnding); }