public static ImageAnimation Begin(Image image, Sprite[] sprites, float frameGap = 0.25f, bool nativeSize = false) { ImageAnimation com = image.GetComponent <ImageAnimation>(); if (com == null) { com = image.gameObject.AddComponent <ImageAnimation>(); } com.SetSprites(sprites, frameGap, nativeSize); return(com); }