//分配对象池的位置 public static void AllocPoolPos(GameObject go_) { int col = m_allocIndex % m_allocCol; //行 int row = m_allocIndex / m_allocCol; //列 float x = m_allocPos.x + m_allocSize.x * (col + 1); float y = m_allocPos.y + m_allocSize.y * (row + 1); DisplayUtil.SetPos2(go_, x, y); ++m_allocIndex; }
//-------∽-★-∽------∽-★-∽--------∽-★-∽Transform∽-★-∽--------∽-★-∽------∽-★-∽--------// public void SetPosition(Vector2 pos_) { DisplayUtil.SetPos2(this.gameObject, pos_.x, pos_.y); }