so i have this problem that each time i respawn my surrondings fail to load and almost every chunk are invisible please help and after now after i closed unity and re-opened it, i have the same problem
this is the code i used (c#):
using UnityEngine; using System.Collections;
public class DeathTrigger : MonoBehaviour {
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void OnTriggerEnter2D(Collider2D other)
{
if (other.gameObject.CompareTag("Player"))
Application.LoadLevel(Application.loadedLevel);
}
}
↧