isPlaying() private method

private isPlaying ( ) : bool
return bool
Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (MyTransform.gameObject.active == true)
     {
         if (MyAniSprite.isPlaying() == false)
         {
             MyAniSprite.SetFrame(0);
             MyTransform.gameObject.SetActiveRecursively(false);
         }
         if (MyAniSprite.spriteId == MyAniSprite.GetSpriteIdByName("smoke4"))
         {
             MyAniSprite.SetFrame(0);
             MyTransform.gameObject.SetActiveRecursively(false);
         }
     }
 }