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

                if (dropGoods == null)
                {
                    DropGoods.DropStaticGoods(attribute);
                }
            }
        }
Ejemplo 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());
            }
        }
Ejemplo 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();
        }
Ejemplo 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();
        }