Esempio n. 1
0
    void release()
    {
        GetComponent <Collider2D>().isTrigger = true;
        playerController.enabled   = true;
        playerController.attatchTo = null;
        gameObject.GetComponent <Rigidbody2D>().velocity = new Vector2(0, 0);
        next = mapConfig.getNearestRoomLoc(new Vector2(transform.position.x, transform.position.y));

        //Ui
        statusBar.setPlayerIcon(true);
        statusBar.setButtons();

        //audio
        musicController.switchtarget();
    }