コード例 #1
0
    private void Init()
    {
        Application.runInBackground = true;
        Resources.UnloadUnusedAssets();
        System.GC.Collect();

        SetROOTObjects();
        SetResourceObjectROOTChildren();
        TextParserScript = new TextParser();
        if (!gameObject.GetComponent <DefineBaseManager>())
        {
            gameObject.AddComponent <DefineBaseManager>();
        }

        InitGameCamera();
        InitEzGuiCamera();

        FullHDScreenSize.x = 1920;
        FullHDScreenSize.y = 1080;

        UIScreenSizeX2Max = 1600;
        UIScreenSizeX2Num = 1.5f;

        SetDefineScreen();
        SetGameUICameraInspector();
        SetUICameraInspector();

        MainMoveXPercent = 1.5f;
        MainMoveYPercent = 1.5f;

        InitPlatform();
        InitDevice();
        ApplicationDataPath = Application.persistentDataPath;

        if (DefineBaseManager.inst.GetTouchInput())
        {
            InputManagerScript = this.gameObject.AddComponent <MobileInputManager>();
        }
        else
        {
            InputManagerScript = this.gameObject.AddComponent <InputManager>();
        }
        InputManagerScript.Create();

        m_LoadStep = LOAD_STEP._STEP1;
    }