Browse Source

Fixed Fade Sprite null reference error if no sprite selected

master
chrisgregan 10 years ago
parent
commit
ced8467d27
  1. 6
      Assets/Fungus/Sprite/Scripts/Commands/FadeSprite.cs

6
Assets/Fungus/Sprite/Scripts/Commands/FadeSprite.cs

@ -17,6 +17,12 @@ namespace Fungus
public override void OnEnter()
{
if (spriteRenderer == null)
{
Continue();
return;
}
CameraController cameraController = CameraController.GetInstance();
if (waitUntilFinished)

Loading…
Cancel
Save