Skip to content

Commit

Permalink
销毁点击效果时候也销毁绑定的灯光
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Aug 31, 2013
1 parent 979a70e commit 1d578c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions XLib/src/com/core/Basic/XBuilder.as
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ package com.core.Basic
import flash.geom.Point;
import flash.utils.ByteArray;

import mx.core.mx_internal;

import feathers.dragDrop.DragData;
import feathers.dragDrop.DragDropManager;
import feathers.dragDrop.IDragSource;
import feathers.dragDrop.IDropTarget;
import feathers.events.DragDropEvent;

import starling.display.Image;
import starling.display.Sprite;
Expand Down
5 changes: 5 additions & 0 deletions XLib/src/com/core/Effect/ClickEffect.as
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ package com.core.Effect
{
if(list[i].o == o)
{
if(o is XBuilder)
{
var l:XLight = XWorld.instance.scene.getLightByBuilderSceneName((o as XBuilder).vo.sceneName);
stopPlayEffect(l);
}
list[i].line.stop();
list.splice(i,1);
}
Expand Down

0 comments on commit 1d578c4

Please sign in to comment.