Esempio n. 1
0
        IEnumerator Drop()
        {
            while (true)
            {
                yield return(new WaitForSeconds(10));

                if (dropGoods == null)
                {
                    DropGoods.DropStaticGoods(attribute);
                }
            }
        }
Esempio n. 2
0
        public override void EnterState()
        {
            base.EnterState();
            if (deadCallback != null)
            {
                deadCallback();
            }
            Util.SetLayer(GetAttr().gameObject, GameLayer.IgnoreCollision);
            GetAttr().IsDead = true;

            if (NetworkUtil.IsNetMaster())
            {
                DropGoods.DropStaticGoods(GetAttr());
            }
        }
Esempio n. 3
0
        public override void EnterState()
        {
            base.EnterState();
            Util.SetLayer(GetAttr().gameObject, GameLayer.IgnoreCollision);

            GetAttr().GetComponent <Animation>().CrossFade("opening");
            GetAttr().IsDead = true;
            GetAttr().OnlyShowDeadEffect();

            if (NetworkUtil.IsNetMaster())
            {
                DropGoods.DropStaticGoods(GetAttr());
            }
            CreateParticle();
        }
Esempio n. 4
0
        public override void EnterState()
        {
            base.EnterState();
            if (deadCallback != null)
            {
                deadCallback();
            }
            Util.SetLayer(GetAttr().gameObject, GameLayer.IgnoreCollision);

            //GetAttr().animation.CrossFade("opening");
            GetAttr().IsDead = true;
            //GetAttr().OnlyShowDeadEffect();

            if (NetworkUtil.IsNetMaster())
            {
                DropGoods.DropStaticGoods(GetAttr());
            }
            //CreateParticle();
        }