public EditorBaseNode() { //Instantiate Styles common a across all nodes labelStyleHead_Panel = new GUIStyle(); labelStyleHead_Panel.normal.textColor = Color.white; labelStyleHead_Panel.fontStyle = FontStyle.Bold; labelStyleHead_Panel.fontSize = 15; labelStyleHead_Node = new GUIStyle(); labelStyleHead_Node.normal.textColor = Color.white; labelStyleHead_Node.fontStyle = FontStyle.Bold; labelStyleHead_Node.fontSize = 15; nodeColor = Color.gray; inspectorText = new GUIStyle(); inspectorText.normal.textColor = Color.white; //Get Reference to RuntimeManager GameObject managerRef = GameObject.Find("AutoCineCamera"); runtime_manager = managerRef.GetComponent <RunTimeManager>(); //Add Node to RuntimeDictionary System.Guid guidVal = System.Guid.NewGuid(); node_id = guidVal.ToString(); }
//BranchCamEditor Functions public static void init() { if (!initHasBeenCalled) { //Get Reference to RuntimeManager GameObject managerRef = GameObject.Find("AutoCineCamera"); runtime_manager = managerRef.GetComponent <RunTimeManager>(); runtime_manager.ResetEverything(); initHasBeenCalled = true; } //Setup UI Editor editor = (BranchCamEditor)EditorWindow.GetWindow(typeof(BranchCamEditor), false, "ConvoGraph"); tex = new Texture2D(1, 1, TextureFormat.RGBA32, false); tex.SetPixel(0, 0, new Color(0f, 0f, 0f)); tex.Apply(); editor.minSize = new Vector2(400f, 400f); editor.autoRepaintOnSceneChange = true; editor.Show(); setPanelBackgrounds(); arrowImage = Resources.Load("arrowImage2") as Texture2D; }
private void Awake() { Instance = this; }