Exemple #1
0
        public void Sprite(Sprite sprite, float alpha = 1)
        {
            status = Status.Ready;

            image.sprite = this.sprite = sprite;

            color.a = alpha;

            image.color = color;

            if (background != null)
            {
                background.SetActive(false);
            }
            status = Status.Idle;
        }