示例#1
0
    public void OnTriggerEnter2D(Collider2D collision)
    {
        levelLoader load = FindObjectOfType <levelLoader>();

        //levelLoader load = new levelLoader();
        load.LoadLevel();
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        Loader          = GetComponent <levelLoader>();
        timeMan         = GetComponent <timeManager>();
        EventDispatcher = GetComponent <EventManager>();

        BindToEvents();

        //PreLoadInitialiseGame();
        PostLoadInitialiseGame();
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     levelLoadScript =
         GameObject.Find("sceneController").GetComponent <levelLoader>();
 }