mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-15 12:29:49 +07:00
fix life after death and little view stuff
This commit is contained in:
@@ -352,20 +352,18 @@ namespace FTRuntime {
|
||||
_clip = GetComponent<SwfClip>();
|
||||
}
|
||||
|
||||
void Start() {
|
||||
if ( autoPlay && Application.isPlaying ) {
|
||||
Play(false);
|
||||
}
|
||||
}
|
||||
|
||||
void OnEnable() {
|
||||
var swf_manager = SwfManager.GetInstance(true);
|
||||
if ( swf_manager ) {
|
||||
swf_manager.AddController(this);
|
||||
}
|
||||
if ( autoPlay && Application.isPlaying ) {
|
||||
Play(false);
|
||||
}
|
||||
}
|
||||
|
||||
void OnDisable() {
|
||||
Stop(false);
|
||||
var swf_manager = SwfManager.GetInstance(false);
|
||||
if ( swf_manager ) {
|
||||
swf_manager.RemoveController(this);
|
||||
|
||||
Reference in New Issue
Block a user