public void Awake()
    {
        Debug.Log("Initializing Demo");

        // our logger
        HtEngine.RegisterLogger(new HtmlLogger());
        // our device
        HtEngine.RegisterDevice(new HtmlDevice());
        // our compiler
        this.compiler = HtEngine.GetCompiler();
        // set up first html
        this.html = demo0;
        
    }
 public void OnDestroy()
 {
     // we need to dispose compiler to prevent GC
     if (compiler != null)
     {
         compiler.Dispose();
         compiler = null;
     }
 }
Example #3
0
 void Start() 
 {
     compiler = this.Compiler_;
     //if (!string.IsNullOrEmpty(html))
     //    NeedUpdate = true;
 }