예제 #1
0
    protected override void OnDespawned()
    {
        //reset stuff here
        mRout = null;

        if (mTarget)
        {
            mTarget.Release();
            mTarget = null;
        }

        headSpriteRender.gameObject.SetActive(false);
        headSpriteRender.sortingLayerName = mHeadDefaultSort;
        headSpriteRender.sortingOrder     = mHeadDefaultOrder;
    }
예제 #2
0
 void OnDragEnd()
 {
     if (drag.isDelete)
     {
         entity.Release();
     }
 }