error cs0101
so i'm working on a game but i have this error with the respawn scripts, i have the script kill player for the death zone: using UnityEngine; using System.Collections; public class LevelManager : MonoBehaviour { public LevelManager levelManager; // Use this for initialization void Start () { levelManager = FindObjectsOfType<LevelManager> (); } // Update is called once per frame void Update () { } void OnTriggerEnter2D(Collider2D other) { if (other.name == "Player") { levelManager.RespawnPlayer (); } } }
and i have level manager: using UnityEngine; using System.Collections; public class LevelManager : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public void RespawnPlayer() { Debug.Log ("Player Respawn"); } }
so i don't known anything of c#, just very basic batch file, i'm learning