void InitBlockTeamPos(BlockTeam bt) { int iX = (this.GetWidth() - bt.GetWidth()) / 2; int iY = 0 - bt.GetTopOffset(); bt.SetPos(iX, iY); }
public virtual BlockTeam Clone() { BlockTeam bt = Activator.CreateInstance(this.GetType()) as BlockTeam; bt.SetPos(this.GetPos().x, this.GetPos().y); bt.SetRotIndex(m_iIndexPos); return(bt); }
public void CopyTo(BlockTeam bt) { bt.SetPos(GetPos().x, GetPos().y); bt.SetRotIndex(m_iIndexPos); }