Ejemplo n.º 1
0
    private void Init()
    {
        BehaviorDataController.Instance = new BehaviorDataController();

        _behaviorDrawPropertyController = new BehaviorDrawPropertyController();
        _behaviorDrawPropertyController.Init();

        _behaviorDrawController = new BehaviorDrawController();
        _behaviorDrawController.Init();

        BehaviorRunTime.Instance.Init();
    }
Ejemplo n.º 2
0
    private void OnEnable()
    {
        BehaviorManager.Instance.Init();

        _behaviorDrawPropertyController = new BehaviorDrawPropertyController();
        _behaviorDrawPropertyController.Init();

        _behaviorDrawController = new BehaviorDrawController();
        _behaviorDrawController.Init();

        BehaviorRunTime.Instance.Init();

        EditorApplication.update += OnFrame;
    }