Exemplo n.º 1
0
    // Use this for initialization
//	void Start () {
//
//	}
    private void finish()
    {
        canMoveOn = true;
        GameObject go = new GameObject();

        go.AddComponent <nextLevelScript> ();
        go.transform.position = transform.position;
        playerScript temp = FindObjectOfType <playerScript>();

        if (temp != null)
        {
            temp.setSpeed(new Vector2(0, 32));
            temp.invulnerable = 999;
        }
        GameManagerScript.Instance.kaboom();
    }