コード例 #1
0
ファイル: GridCell.cs プロジェクト: dqchess/Tap-Match
 internal void GrabDynamicObject(GameObject dObject, bool fast, Action completeCallBack)
 {
     if (dObject)
     {
         dObject.transform.parent = transform;
         if (!fast)
         {
             MoveTween(dObject, completeCallBack);
         }
         else
         {
             FastMoveTween(dObject, completeCallBack);
         }
         GridObject gO = dObject.GetComponent <GridObject>();
         if (gO)
         {
             gO.SetToFront(false);
         }
     }
     else
     {
         completeCallBack?.Invoke();
     }
 }
コード例 #2
0
 /// <summary>
 /// Return true if is the same object (the same reference)
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 internal bool ReferenceEquals(GridObject other)
 {
     return System.Object.ReferenceEquals(this, other);//Determines whether the specified Object instances are the same instance.
 }