C# app crashing but works on computer

When I click the start button it works fine while on computer but crashes when I do it while on my phone. Also I have used similiar code for another app I made and it works fine for that. My code is listed below.

using UnityEngine;
using System.Collections;

public class StartGame : MonoBehaviour {

    void Update () {
        if(Input.GetMouseButtonDown(0) )
        {
            Application.LoadLevel ("Game");
          
          
            Score.score = 0;
    }
}
}

One platform may be case sensitive as far as “Game” vs “game”? Not sure because I thought Unity was always case-sensitive in this regard… at least it’s something to try.

1 Like