Ejemplo n.º 1
0
 public bool UpdatePlane()
 {
     if (SoldierBatchGridCell.PickTerrain(base.transform.position, ref this.mCenterPos))
     {
         this.UpdatePlaneByTerrain();
         return(true);
     }
     this.UpdatePlaneByRay(null);
     return(false);
 }
Ejemplo n.º 2
0
 private void Make(eBATTLE_ALLY eAlly, short nStartPosIndex, int index)
 {
     this.mAlly               = eAlly;
     this.mnStartPosIndex     = nStartPosIndex;
     this.mIdx                = index;
     this.mGridCell           = base.gameObject.AddComponent <SoldierBatchGridCell>();
     this.mCollider           = base.gameObject.AddComponent <BoxCollider>();
     this.mCollider.isTrigger = true;
     this.mCollider.size      = new Vector3(6f, 1f, 6f);
     base.gameObject.layer    = TsLayer.PC_DECORATION;
     base.gameObject.SetActive(true);
     this.SetMODE(E_RENDER_MODE.NORMAL);
 }