public void OnTriggerEnter2D(Collider2D collision) { levelLoader load = FindObjectOfType <levelLoader>(); //levelLoader load = new levelLoader(); load.LoadLevel(); }
// Use this for initialization void Start() { Loader = GetComponent <levelLoader>(); timeMan = GetComponent <timeManager>(); EventDispatcher = GetComponent <EventManager>(); BindToEvents(); //PreLoadInitialiseGame(); PostLoadInitialiseGame(); }
// Use this for initialization void Start() { levelLoadScript = GameObject.Find("sceneController").GetComponent <levelLoader>(); }