// Use this for initialization void Start() { flipBoundary = Screen.width * 0.1f; mLauncherController = GameObject.FindGameObjectWithTag("GameController").GetComponent <LauncherController>(); mIconDragController = mLauncherController.iconDragController; touchInfo.pageBeginDrag = false; touchInfo.currentTouchPos = Vector2.zero; longClickUtils = new LongClickUtils(); longClickUtils.longClickListener = this; }
void Awake() { Screen.fullScreen = false; CanvasScaler canvasScaler = launcherCanvas.GetComponent <CanvasScaler> (); canvasScaler.referenceResolution = new Vector2(Screen.width, Screen.height - 72); pageController = pageContainer.GetComponent <PageController> (); iconDragController = pageContainer.GetComponent <IconDragController> (); trashRange = GameObject.FindGameObjectWithTag("TrashRange"); trash = trashRange.transform.GetChild(0).gameObject; uninstallDialog = GameObject.FindGameObjectWithTag("UninstallDialog"); uninstallDialog.transform.localScale = Vector3.zero; AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); launcherPlugin = jc.GetStatic <AndroidJavaObject> ("currentActivity"); ShowStatusBar(); GetLauncherModel(); // mock(); // Log("LauncherController", "Awake()"); }
void Awake() { mLauncherController = GameObject.FindGameObjectWithTag("GameController").GetComponent <LauncherController>(); mIconDragController = mLauncherController.iconDragController; launcherModel = mLauncherController.launcherModel; }
void Start(){ mLauncherController = GameObject.FindGameObjectWithTag ("GameController").GetComponent<LauncherController>(); mIconDragController = mLauncherController.iconDragController; mLauncherController.Log (TAG, "Start"); }