void Start() { if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer) { isMobile = true; } Camera.main.backgroundColor = mainBgColor; currentScene = ExistingScenes.intro; screenDimensions = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, Screen.height, 0)); // Debug.Log("is mobile is " + isMobile); }
public void RunEnding() { Debug.Log("ren ending now"); currentScene = ExistingScenes.ending; Debug.Log(currentScene); }