public void Use() { if (bosterType == BosterType.None) { return; } bosterType = BosterType.None; UIImage.sprite = null; }
void Start() { UIImage = GetComponent <Image>(); bosterType = BosterType.None; }
public void FlyToHolder(BosterBase boster) { bosterType = boster.bosterType; UIImage.sprite = boster.spRen.sprite; Destroy(boster.gameObject); }