public bool UpdatePlane() { if (SoldierBatchGridCell.PickTerrain(base.transform.position, ref this.mCenterPos)) { this.UpdatePlaneByTerrain(); return(true); } this.UpdatePlaneByRay(null); return(false); }
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); }