LTDescr.cancel C# (CSharp) Method

cancel() private method

private cancel ( GameObject gameObject ) : LTDescr,
gameObject GameObject
return LTDescr,
    public LTDescr cancel( GameObject gameObject )
    {
        // Debug.Log("canceling id:"+this._id+" this.uniqueId:"+this.uniqueId+" go:"+this.trans.gameObject);
        if(gameObject==this.trans.gameObject)
            LeanTween.removeTween((int)this._id, this.uniqueId);
        return this;
    }

Usage Example

Beispiel #1
0
 private static void DoExpTweenEnd()
 {
     if ((_expTweenRect != null) && (_expLTD != null))
     {
         _expTweenRect.sizeDelta = new Vector2(_expTo * 327.6f, _expTweenRect.sizeDelta.y);
         _expLTD.cancel();
         _expLTD       = null;
         _expTweenRect = null;
     }
     if (_continueBtn != null)
     {
         _continueBtn.CustomSetActive(true);
         _continueBtn = null;
     }
     if (_lvUpGrade > 1)
     {
         CUIEvent event3 = new CUIEvent {
             m_eventID = enUIEventID.Settle_OpenLvlUp
         };
         event3.m_eventParams.tag  = ((int)_lvUpGrade) - 1;
         event3.m_eventParams.tag2 = (int)_lvUpGrade;
         CUIEvent uiEvent = event3;
         Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(uiEvent);
     }
     _lvUpGrade = 0;
 }
All Usage Examples Of LTDescr::cancel
LTDescr