// Start is called before the first frame update void OnEnable() { player = FindObjectOfType <PlayerAllinOne>().gameObject; playerAllInOne = FindObjectOfType <PlayerAllinOne>(); playerSpawnPoint = this.transform.position; }
void OnEnable() { playerAllInOne = FindObjectOfType <PlayerAllinOne>(); }