Пример #1
0
        void OnDisable()
        {
            var swf_manager = SwfManager.GetInstance(false);

            if (swf_manager)
            {
                swf_manager.RemoveClip(this);
            }
        }
Пример #2
0
        void OnEnable()
        {
            var swf_manager = SwfManager.GetInstance(true);

            if (swf_manager)
            {
                swf_manager.AddClip(this);
            }
        }
Пример #3
0
        void OnDisable()
        {
            Stop(false);
            var swf_manager = SwfManager.GetInstance(false);

            if (swf_manager)
            {
                swf_manager.RemoveController(this);
            }
        }
Пример #4
0
        void OnEnable()
        {
            var swf_manager = SwfManager.GetInstance(true);

            if (swf_manager)
            {
                swf_manager.AddController(this);
            }
            if (autoPlay && Application.isPlaying)
            {
                Play(false);
            }
        }