Example #1
0
 void OnEnable()
 {
     toggles  = new bool[] { false };
     buttons  = new string[] { "Open" };
     vars     = (ManageVariables)AssetDatabase.LoadAssetAtPath("Assets/Game/Resources/ManageVariablesContainer.asset", typeof(ManageVariables));
     book     = Resources.Load("question", typeof(Texture2D)) as Texture2D;
     GDbanner = Resources.Load("GDbanner", typeof(Texture2D)) as Texture2D;
 }
Example #2
0
    void OnEnable()
    {
        toggles  = new bool[] { false, false, false };
        buttons  = new string[] { "Open", "Open", "Open" };
        vars     = (ManageVariables)AssetDatabase.LoadAssetAtPath("Assets/Game/Resources/ManageVariablesContainer.asset", typeof(ManageVariables));
        book     = Resources.Load("question", typeof(Texture2D)) as Texture2D;
        GDbanner = Resources.Load("GDbanner", typeof(Texture2D)) as Texture2D;
        try
        {
            UIO = Camera.main.GetComponent <UIObjects>();
        }
        catch (Exception e) { }

        try
        {
            liveUpdate();
        }
        catch (Exception e) { }
    }
Example #3
0
 void OnEnable()
 {
     vars = Resources.Load("ManageVariablesContainer") as ManageVariables;
     SceneManager.sceneLoaded += OnLevelFinishedLoading;
 }
Example #4
0
 void OnEnable()
 {
     vars = Resources.Load("ManageVariablesContainer") as ManageVariables;
 }
Example #5
0
    public ManageVariables vars;            //this is for editor

    void OnEnable()
    {
        vars = Resources.Load("ManageVariablesContainer") as ManageVariables; //this is for editor
    }