void Start() { mAppManager.InitManager(); }
void Start() { mPopUpMsg.InitPopUp(); mAppManager.InitManager(); }
public static int _stage = 0; // if _stage == 0 - appears and starts playing opening animation; // if _stage == 1 - appears language menu; // if _stage == 2 - appears scene's introduction with language depend on chosen in a previous menu; // if _stage == 3 - appears title; // if _stage == 4 - all previous menus hides, and animation is ready to play, appears main menu buttons; // if _stage == 5 - appears and starts playing ending animation, another control options are disabled; void Start() { appManager.InitManager(); // Disable screen rotation. Screen.autorotateToPortrait = false; Screen.autorotateToPortraitUpsideDown = false; Screen.orientation = ScreenOrientation.LandscapeLeft; appsUILayout = GameObject.FindObjectOfType <AppsUILayout>(); appManager = GameObject.FindObjectOfType <AppManager>(); Debug.Log(SystemInfo.deviceModel); // The next statment check, the application run on Unity editor or Android device. If application run on Android device, than the program search for a rigth screen resoulution and calls needed layout. #if UNITY_EDITOR appsUILayout.layoutMyLaptop(); Debug.Log("Unity Editor"); #elif UNITY_ANDROID && !UNITY_EDITOR if (Screen.width == 2560 && Screen.height == 1600) { appsUILayout.layout2560x1600(); } else if (Screen.width == 2560 && Screen.height == 1440) { appsUILayout.layout2560x1440(); } else if (Screen.width == 2048 && Screen.height == 1536) { appsUILayout.layout2048x1536(); } else if (Screen.width == 1920 && Screen.height == 1200) { appsUILayout.layout1920x1200(); } else if (Screen.width == 1920 && Screen.height == 1080) { appsUILayout.layout1920x1080(); } else if (Screen.width == 1280 && Screen.height == 800) { appsUILayout.layout1280x800(); } else if (Screen.width == 1280 && Screen.height == 720) { appsUILayout.layout1280x720(); } else if (Screen.width == 1024 && Screen.height == 600) { appsUILayout.layout1024x600(); } else if (Screen.width == 540 && Screen.height == 960) { appsUILayout.layout540x960(); } else if (Screen.width == 480 && Screen.height == 800) { appsUILayout.layout480x800(); } else if (Screen.width == 480 && Screen.height == 854) { appsUILayout.layout480x854(); } else if (Screen.width == 320 && Screen.height == 480) { appsUILayout.layout320x480(); } #endif }