void OnDisable() { if (dragonBonesCom != null) { dragonBonesCom.RemoveDBEventListener(EventObject.FRAME_EVENT, OnFrameEvent); dragonBonesCom.RemoveDBEventListener(EventObject.LOOP_COMPLETE, OnLoopCompleteEvent); dragonBonesCom.RemoveDBEventListener(EventObject.COMPLETE, OnCompleteEvent); } }
public void Charge() { arma.RemoveDBEventListener(EventObject.COMPLETE, PlayIdle); arma.animation.FadeIn("Charge", 0.2f, -1, 1); chargeEff.active = true; }