void OnEnable() //This called when you open a window and also sometimes if you press the Play button. { //Debug.Log("Window OnEnable Called"); //_actionsList = HelperMethods.GetDerivedTypes<ActionLogicBase>(); if (_actionRecorder == null) { _actionRecorder = ActionRecorder.GetInstance(5); //Don't use createInstance...use GetInstance(stackSize). //Debug.Log("A new actionRecorder initialized"); } //Define the actions after you have made sure you have an instance of actionRecorder. // Create instances of the action view's/GUI // so you can display it in the OnGUI method of the editor window. if (_radialSpreadAction == null) { //Don't use createInstance use GetInstance instead. _radialSpreadAction = RadialSpreadView.GetInstance <RadialSpreadView>(_actionRecorder); //Debug.Log("A new _radialSpreadAction initialized"); } }
//This called when you open a window and also sometimes if you press the Play button. void OnEnable() { //Debug.Log("Window OnEnable Called"); //_actionsList = HelperMethods.GetDerivedTypes<ActionLogicBase>(); if (_actionRecorder == null) { _actionRecorder = ActionRecorder.GetInstance(5); //Don't use createInstance...use GetInstance(stackSize). //Debug.Log("A new actionRecorder initialized"); } //Define the actions after you have made sure you have an instance of actionRecorder. // Create instances of the action view's/GUI // so you can display it in the OnGUI method of the editor window. if (_radialSpreadAction == null) { //Don't use createInstance use GetInstance instead. _radialSpreadAction = RadialSpreadView.GetInstance<RadialSpreadView>(_actionRecorder); //Debug.Log("A new _radialSpreadAction initialized"); } }