private void Init() { BehaviorDataController.Instance = new BehaviorDataController(); _behaviorDrawPropertyController = new BehaviorDrawPropertyController(); _behaviorDrawPropertyController.Init(); _behaviorDrawController = new BehaviorDrawController(); _behaviorDrawController.Init(); BehaviorRunTime.Instance.Init(); }
private void OnEnable() { BehaviorManager.Instance.Init(); _behaviorDrawPropertyController = new BehaviorDrawPropertyController(); _behaviorDrawPropertyController.Init(); _behaviorDrawController = new BehaviorDrawController(); _behaviorDrawController.Init(); BehaviorRunTime.Instance.Init(); EditorApplication.update += OnFrame; }