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; }
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) { } }
void OnEnable() { vars = Resources.Load("ManageVariablesContainer") as ManageVariables; SceneManager.sceneLoaded += OnLevelFinishedLoading; }
void OnEnable() { vars = Resources.Load("ManageVariablesContainer") as ManageVariables; }
public ManageVariables vars; //this is for editor void OnEnable() { vars = Resources.Load("ManageVariablesContainer") as ManageVariables; //this is for editor }