예제 #1
0
 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.
 }