public virtual void OnItemBoughtEvent(ItemBoughtEvent e)
    {
        Debug.Log("Changing colors");
        itemboughtcount++;
        switch (itemboughtcount)
        {
        default:
            break;

        case 3:
            SetColors(color2, colorside2, colorfloor2);
            break;

        case 5:
            SetColors(color3, colorside3, colorfloor3);
            break;

        case 7:
            SetColors(color4, colorside4, colorfloor4);
            break;

        case 9:
            SetColors(color5, colorside5, colorfloor5);
            break;
        }
    }
Exemple #2
0
        protected override void OnItemBought(ItemBoughtEvent ibe)
        {
            if (open)
            {
                return;
            }

            foreach (var s in GetComponent <RoomComponent>().Room.Tagged[Tags.Item])
            {
                if (s is BoxyStand st && st != ibe.Stand && st.Item != null)
                {
                    return;
                }
            }

            var d = GetComponent <DialogComponent>();

            d.StartAndClose("boxy_9", 3);

            Timer.Add(() => {
                AnimationUtil.Poof(Center);

                GetComponent <DropsComponent>().SpawnDrops();

                open            = true;
                var a           = GetComponent <AnimationComponent>();
                a.Animation.Tag = "open";
                a.Animate();

                Achievements.Unlock("bk:open_up");
            }, 4f);
        }
    void OnItemBoughtEvent(ItemBoughtEvent e)
    {
        itemboughtcount++;
        switch (itemboughtcount)
        {
        default:
            break;

        case 3:
            anim.SetInteger("State", 1);
            break;

        case 5:
            anim.SetInteger("State", 2);
            break;

        case 7:
            anim.SetInteger("State", 3);
            break;

        case 9:
            anim.SetInteger("State", 4);
            break;
        }
    }
    void OnItemBoughtEvent(ItemBoughtEvent e)
    {
        itemboughtcount++;
        //opens mirror for every scene/color change

        switch (itemboughtcount)
        {
        default:
            break;

        case 3:
            activepanel = 1;
            OpenMirror();
            break;

        case 5:
            activepanel = 2;
            OpenMirror();
            break;

        case 7:
            activepanel = 3;
            OpenMirror();
            break;

        case 9:
            activepanel = 4;
            OpenMirror();
            break;
        }
    }
Exemple #5
0
        protected override void OnItemBought(ItemBoughtEvent ibe)
        {
            foreach (var s in GetComponent <RoomComponent>().Room.Tagged[Tags.Item])
            {
                if (s is SnekStand st && st != ibe.Stand && st.Item != null)
                {
                    return;
                }
            }

            var d = GetComponent <DialogComponent>();

            d.StartAndClose("snek_6", 3);

            Timer.Add(() => {
                d.StartAndClose("snek_7", 3);

                Timer.Add(() => {
                    AnimationUtil.Poof(Center);
                    Done = true;

                    var stand = new SnekStand();
                    Area.Add(stand);
                    stand.Center = Center;
                    stand.SetItem(Items.CreateAndAdd("bk:snek", Area), this);
                }, 4f);
            }, 4f);
        }
Exemple #6
0
    public virtual void OnItemBoughtEvent(ItemBoughtEvent e)
    {
        //decreases web's opacity, increases speed of opacity increase
        //buying items reset the current web image's opacity to 0
        color.a = 0;

        sprite[imagecount].color = color;
        if (imagecount < sprite.Length - 1)
        {
            Color colortemp;
            colortemp.r = 255;
            colortemp.g = 255;
            colortemp.b = 255;
            colortemp.a = 0;
            sprite[imagecount + 1].color = colortemp;
        }
        alpha += 0.00001f;
    }
Exemple #7
0
 public void OnItemBoughtEvent(ItemBoughtEvent e)
 {
     SetDescription();
 }
 void OnItemBoughtEvent(ItemBoughtEvent e)
 {
     CheckColor();
 }
Exemple #9
0
 public virtual void OnItemBoughtEvent(ItemBoughtEvent e)
 {
     itemsonwall += 1;
 }