IEnumerator Drop() { while (true) { yield return(new WaitForSeconds(10)); if (dropGoods == null) { DropGoods.DropStaticGoods(attribute); } } }
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()); } }
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(); }
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(); }