Example #1
0
    // Use this for initialization
    private void Start()
    {
        ForceAndroidManifestDependancies();
        _assembly = CCL.Core.Assembly.main;
        MobileConsole.Log(" Initializing...");
        System.Type[] libs = CCL.Core.Assembly.main.GetLoadedLibraries();
        MobileConsole.Log("libs loaded: " + libs.Length);
        if (libs.Length < 1)
        {
            CCL.ScriptUtility.LoadStandardLibraries();

            libs = CCL.Core.Assembly.main.GetLoadedLibraries();
        }
        CCL.Core.Assembly.main.LoadLibrary(typeof(IOLib));
        MobileConsole.Log("libs loaded: " + libs.Length);
        for (int i = 0; i < libs.Length; i += 1)
        {
            MobileConsole.Log(libs[i].Name + " Loaded");
        }
        MobileConsole.Log("Done!");

        _codeHelper             = new CCL.CodeHelper();
        _codeHelper.assembly    = _assembly;
        _codeHelper.contextType = typeof(Context);
        _codeHelper.code        = "";
    }