Ejemplo n.º 1
0
 internal void SetDynamicClickBomb(DynamicClickBombObjectData mObjectData)
 {
     if (mObjectData == null || IsDisabled || Blocked)
     {
         return;
     }
     // Debug.Log("set dynamic click bomb : " + mObjectData.ID);
     if (DynamicObject)
     {
         GameObject old = DynamicObject;
         DestroyImmediate(old);
     }
     if (StaticBlocker)
     {
         GameObject old = StaticBlocker.gameObject;
         DestroyImmediate(old);
     }
     DynamicClickBombObject.Create(this, mObjectData, false, true, MBoard.TargetCollectEventHandler);
     DynamicClickBomb.SetToFront(false);
 }
Ejemplo n.º 2
0
 public bool HaveObjectWithID(int id)
 {
     if (Match && Match.GetID() == id)
     {
         return(true);
     }
     if (Falling && Falling.GetID() == id)
     {
         return(true);
     }
     if (Overlay && Overlay.GetID() == id)
     {
         return(true);
     }
     if (Underlay && Underlay.GetID() == id)
     {
         return(true);
     }
     if (DynamicClickBomb && DynamicClickBomb.GetID() == id)
     {
         return(true);
     }
     return(false);
 }