Answer the question
In order to leave comments, you need to log in
OnMouseDown not working correctly?
Game stop code -
public SpawningClickiongETC spawningClickiongETC;
public GameObject deathPanel;
private void Start()
{
spawningClickiongETC = GameObject.Find("Main Camera").GetComponent<SpawningClickiongETC>();
}
private void OnMouseDown()
{
spawningClickiongETC.ieBool = false;
deathPanel.gameObject.SetActive(true);
}
public void startDelete()
{
StartCoroutine(delete);
}
private void OnMouseDown()
{
animator.SetBool("New Bool", true);
startDelete();
}
public IEnumerator delets()
{
yield return new WaitForSeconds(toWaitAfterDelete);
Destroy(gameObject);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question