- Home /
Question by
unity_YYoxtjdH92iNIg · Feb 12, 2020 at 05:48 PM ·
buttontriggerscenecursor
When enter deathscene cursor disappear
i have trigger that when i triggerred load deathscene..in editor no problem,but after build cursor not showing and i cant click mainmenu button.. here is my script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class death : MonoBehaviour
{
public string scenex = "";
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void OnTriggerEnter(Collider other)
{
if (other.gameObject.CompareTag("oyuncu"))
{
Debug.Log("degdi");
SceneManager.LoadScene(scenex);
Cursor.lockState = CursorLockMode.None;
Cursor.visible=true;
}
}
}
Comment