Beispiel #1
0
        public void OnEnable()
        {
            instance = this;

            EditorApplication.update -= UpdateState;
            EditorApplication.update += UpdateState;

            Reset();
            playing = true;
        }
Beispiel #2
0
        public void OnDisable()
        {
            instance = null;

            EditorApplication.update -= UpdateState;

            if (FrameSelector.instance != null)
            {
                FrameSelector.instance.Close();
            }
        }