Exemple #1
0
        public override void Respond(Pusheable pusheable)
        {
            base.Respond(pusheable);

            if (previousOne == pusheable.pusheableType)
            {
                dd.Play();

                multiplier++;

                Economy.Instance.money += pusheable.value * multiplier;
                //var go = Instantiate(floatingTextMultiplier);
                //go.transform.position = transform.position;
                //go.transform.position += Vector3.forward * multiplier_dist;
                EconomyUI.instance.SetMultiplier(multiplier);
            }
            else
            {
                dd.Play();

                previousOne = pusheable.pusheableType;

                multiplier              = 1;
                Economy.Instance.money += pusheable.value;

                EconomyUI.instance.SetMultiplier(1);
            }
        }
Exemple #2
0
        // Hit the store, take money to spawn seeds
        // Hit the store, take money to spawn seeds
        // TODO the more you hit
        // THE BIGGER THE COMBO THE MORE DROP YOU GET
        public override void Respond(Pusheable pusheable)
        {
            base.Respond(pusheable);

            RainSeedsBags(1);

            //Economy.Instance.money += pusheable.value;
        }