public void rotate(bool isRight) { //copy puyopuyo prev_puyo = new puyopuyo(); prev_puyo.init(); prev_puyo.copy(m_temp_puyo); //rotate m_temp_puyo.rotate(isRight); //check if (m_game_field.check_collision(ref m_temp_puyo) == true) { m_temp_puyo.copy(prev_puyo); } }