public void SpritePreviewSync() { SpriteDatabase.SpriteIndexInfo info = bulletDatabase.GetSpriteInfo(bulletGroupUI.value, bulletListUI.value); if (info != null) { bulletPreview.sprite = spriteDatabase.GetSprite(info); } }
public void BulletCurrSpriteSync() { SpriteDatabase.SpriteIndexInfo info = GetSpriteInfo(); if (info == null) { Debug.Log("list is null"); return; } info.group = bulletSpriteGroup; info.set = 0; info.index = bulletSpriteListUI.value; bulletImage.sprite = spriteDatabase.GetSprite(info); }
public Bullet(string n, SpriteDatabase.SpriteIndexInfo sp, float at) { name = n; spriteInfo = sp; attack = at; }
public void AddNewBullet(int group, string n, SpriteDatabase.SpriteIndexInfo sp) { bulletList[group].list.Add(new Bullet(n, sp, 1f)); }
public void BulletSpriteSync() { SpriteDatabase.SpriteIndexInfo info = GetSpriteInfo(); bulletImage.sprite = spriteDatabase.GetSprite(info); bulletSpriteListUI.value = info.index; }