fix life after death and little view stuff

This commit is contained in:
2016-12-05 23:31:45 +07:00
parent 0d9cd6603e
commit 3fa3bf5564
2 changed files with 9 additions and 11 deletions

View File

@@ -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);